On 4/18/06, John Powers <[EMAIL PROTECTED]> wrote:
> What do you mean by "use index and search analyzers". Don't you always
> have to pass in an analyzer? I am using the standardanalyzer in both
> cases.
I think he means a different analyzer for search than is used for
indexing. It can make se
il 18, 2006 4:53 PM
> To: java-user@lucene.apache.org
> Subject: RE: hypens
>
> What do you mean by "use index and search analyzers". Don't
> you always
> have to pass in an analyzer? I am using the standardanalyzer in both
> cases.
>
Sent: Tuesday, April 18, 2006 3:45 AM
To: java-user@lucene.apache.org
Subject: RE: hypens
Hi,
I would use index & search analyzers in this case..
"b-trunk" is analyzed & indexed as b,btrunk,trunk
Search term "b-trunk" is anlayzed using search analyzer as "btrunk&qu
tc , indexed as
12412,12412235,235 etc
So obviously it will find 12412 search term.
Good luck,
Jelda
> -Original Message-
> From: John Powers [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 17, 2006 6:59 PM
> To: java-user@lucene.apache.org
> Subject: hypens
>
>
17 apr 2006 kl. 18.59 skrev John Powers:
Hello,
If I have a user search for "b-trunk" I would like them to be able to
find "b-trunk" (with hypen). I would also like someone searching for
"b trunk" to also find "b-trunk".
If you don't care about spans, make a filter that rebuilds the token
they give me in quotes on all fields as well as the same thing w/o
quotes. When I print out the final query the half of the overall query
in quotes seems to have the hypens stripped out, but the w/o quotes
version doesn't...so this lets me find what I want. But I have each
search phrase