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
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
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
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
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...
&
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
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
*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]>
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
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
10 matches
Mail list logo