I'm using Lucene 2.9. How do I make a comma behave like a regular
character using the StandardAnalyzer? Example:
I have a field called "choice" and some field values:
groupA, morning
groupB, noon
groupC, night
morning
noon
night
So a query choice:night returns "groupC, night" an
Personally punctuation matters in my queries so I use WhitespaceAnalyzer. I
also only want exact hits, so that analyzer works well for me.
Also, AFAIK you don't set NOT_ANALYZED if you want to search through it.
On Wed, Feb 24, 2010 at 10:33 AM, Murdoch, Paul wrote:
> I'm using Lucene 2.9. How
-user@lucene.apache.org
Subject: Re: StandardAnalyzer and comma
Personally punctuation matters in my queries so I use
WhitespaceAnalyzer. I
also only want exact hits, so that analyzer works well for me.
Also, AFAIK you don't set NOT_ANALYZED if you want to search through it.
On Wed, Feb 24, 2010 a
ynch
> Sent: Wednesday, February 24, 2010 11:42 AM
> To: java-user@lucene.apache.org
> Subject: Re: StandardAnalyzer and comma
>
> Personally punctuation matters in my queries so I use
> WhitespaceAnalyzer. I
> also only want exact hits, so that analyzer works well for me.
>
murdoch=saic@lucene.apache.org
[mailto:java-user-return-45137-paul.b.murdoch=saic@lucene.apache.org
] On Behalf Of Erick Erickson
Sent: Wednesday, February 24, 2010 1:40 PM
To: java-user@lucene.apache.org
Subject: Re: StandardAnalyzer and comma
OK, I'm confused. In your original message, you sa
>
> I tried the WhitespaceAnalyzer and liked the way the comma (among other
> punctuation) was preserved. I'm running tests with that right now.
> Unfortunately, if I want to look for "groupC" I have to append the comma
> which won't make sense to a user. Also the query choice:"groupC, night"
> d
o:java-user-return-45137-paul.b.murdoch=saic....@lucene.apache.org
> ] On Behalf Of Erick Erickson
> Sent: Wednesday, February 24, 2010 1:40 PM
> To: java-user@lucene.apache.org
> Subject: Re: StandardAnalyzer and comma
>
> OK, I'm confused. In your original message, you said th