StandardAnalyzer and comma

2010-02-24 Thread Murdoch, Paul
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

Re: StandardAnalyzer and comma

2010-02-24 Thread Max Lynch
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

RE: StandardAnalyzer and comma

2010-02-24 Thread Murdoch, Paul
-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

Re: StandardAnalyzer and comma

2010-02-24 Thread Erick Erickson
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. >

RE: StandardAnalyzer and comma

2010-02-24 Thread Murdoch, Paul
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

Re: StandardAnalyzer and comma

2010-02-24 Thread Max Lynch
> > 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

Re: StandardAnalyzer and comma

2010-02-24 Thread Erick Erickson
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