Re: which analyzer for exact matchs

2011-05-31 Thread bmdakshinamur...@gmail.com
I am not very sure about a language specific analyzer. French language has words seperated by an apostrophe. The standard analyzer does not tokenize words on an apostrophe. Then there is the case of accented letters. It depends on how you want to handle these. Are you going to store them as is or c

Re: which analyzer for exact matchs

2011-05-31 Thread G.Long
Thank you :) It seems to work as I wanted to. Now If I want to index content to do full-text search, would it be better to choose a standardAnalyzer or a more specific one like EnglishAnalyzer or FrenchAnalyzer (assuming the content I want to index is only in english or only in french) ? Reg

Re: which analyzer for exact matchs

2011-05-30 Thread bmdakshinamur...@gmail.com
I think you are looking for a keyword analyzer. http://lucene.apache.org/java/3_0_2/api/core/org/apache/lucene/analysis/KeywordAnalyzer.html On Mon, May 30, 2011 at 8:48 PM, G.Long wrote: > Hello :) > > I'm wondering which Analyzer would be the best to query exact value for a > property. I read

which analyzer for exact matchs

2011-05-30 Thread G.Long
Hello :) I'm wondering which Analyzer would be the best to query exact value for a property. I read the javadoc and it it said that when a document is indexed, I could use the Field.Index.NOT_ANALYZED to store the value as is and then I would be able to query for it. But in the same time, I n