lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun \"Eddie\" Cao" <cao.yi...@gmail.com>
Subject Re: query syntax problem
Date Mon, 07 Aug 2006 22:41:14 GMT
Setting field to Field.Index.UN_TOKENIZED works perfectly. Thanks to all.

Regards,

Eddie

On 8/7/06, Nicolas Lalevée <nicolas.lalevee@anyware-tech.com> wrote:
>
> Le Lundi 07 Août 2006 19:28, Yiqun "Eddie" Cao a écrit:
> > Hi,
> >
> > We are using lucene in a chemistry database, and we are dealing with
> > special words containing both digits and characters in English
> alphabets,
> > such as PFC-0234. To prevent lucene from cutting the word into two, we
> have
> > replaced all dashes into underscores, so PFC-0234 is stored and indexed
> as
> > PFC_0234 in the lucene index. However, none of them works for searches
> > containing wildcard characters. For example, none of the following
> works:
> > PFC_*, PFC*, PF*, PFC_0*, PFC_02*, but PFC-0234 works. Can anyone tell
> me
> > what is wrong here? We have tried WhitespaceAnalyzer, but it's not
> working
> > either.
>
> For this type of field values, you should index them with the index
> property :
> Field.Index.UN_TOKENIZED.
>
> cheers,
> Nicolas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message