In article
<008EAB35-C40D-4F4B-8C05-B02BB07C2B18@ehatchersolutions.com>,
Erik Hatcher <erik@ehatchersolutions.com> wrote:
> This could be a case of your QueryParser analyzer eating a number.
> Range queries and prefix/wildcard query terms are not analyzed.
>
> Besides the great suggestion to use Luke, also try a TermQuery if you
> happen to be using QueryParser to create your Query currently.
>
> Erik
>
Actually, that's another problem I have. I can't search for numbers at
all no how. But the analyzer is just PorterStemmer(Lowercase(Stop))).
Can you tell me where the analyzer is eating numbers?
tia,
arturo
>
> On Apr 7, 2006, at 10:45 PM, Perez wrote:
>
> > Hi all,
> >
> > I have a document with a date in it and I put it into a field like so:
> > DateTools.dateToString(theDate, Resolution.DAY),
> > Field.Index.UN_TOKENIZED.
> >
> > What I find is that a range query works:
> > [20060131 TO 20060601] and wildcard works e.g.
> > 2006*
> > but exact matches do not work e.g.
> > 20060130
> >
> > Any ideas on how I am misusing the API?
> >
> > This is 1.9.1.
> >
> > tia,
> > -arturo
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
|