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

Re: Which analyzer to use for non-english unicoded text?

2009-05-24 Thread Erick Erickson
I don't think there's anything you can use out of the box, but if you search for the mail thread (see serchable archives) for a thread titled "Hebrew and Hindi analyzers" you might find something useful. Not much help I know, but perhaps a place to start. And yes, you should use the same analyzer

RE: Which analyzer

2008-02-08 Thread spring
OK, I will try it. Thank you. > -Original Message- > From: Erick Erickson [mailto:[EMAIL PROTECTED] > Sent: Freitag, 8. Februar 2008 14:25 > To: java-user@lucene.apache.org > Subject: Re: Which analyzer > > WhitespaceAnalyzer should do the trick. Give it a try... &

Re: Which analyzer

2008-02-08 Thread Erick Erickson
son [mailto:[EMAIL PROTECTED] > > Sent: Freitag, 8. Februar 2008 00:20 > > To: java-user@lucene.apache.org > > Subject: Re: Which analyzer > > > > *How* do you want to search them? If it's simply exact matches, then > > WhitespaceAnalyzer should work fine. > > &g

RE: Which analyzer

2008-02-08 Thread spring
o: java-user@lucene.apache.org > Subject: Re: Which analyzer > > *How* do you want to search them? If it's simply exact matches, then > WhitespaceAnalyzer should work fine. > > But if you want to, for example, look at date ranges or number > ranges, you'll have to be more

Re: Which analyzer

2008-02-07 Thread Erick Erickson
*How* do you want to search them? If it's simply exact matches, then WhitespaceAnalyzer should work fine. But if you want to, for example, look at date ranges or number ranges, you'll have to be more clever. What do you want to accomplish? Best Erick On Feb 7, 2008 3:25 PM, <[EMAIL PROTECTED]>

RE: Which Analyzer to use when searching on Keyword fields

2006-04-05 Thread Satuluri, Venu_Madhav
You understood me right, Erik. Your solution is working well, thanks. Venu -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 6:03 PM To: java-user@lucene.apache.org Subject: Re: Which Analyzer to use when searching on Keyword fields Venu

Re: Which Analyzer to use when searching on Keyword fields

2006-04-05 Thread Erik Hatcher
Venu, I presume you're asking about what Analyzer to use with QueryParser. QueryParser analyzes all term text, but you can fake it for Keyword (non-tokenized) fields by using PerFieldAnalyzerWrapper, specifying the KeywordAnalyzer for the fields you indexed as such. The KeywordAnalyzer c