You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Michael J. Prichard" <mi...@mac.com> on 2006/08/06 19:31:42 UTC
Search w/o looking at synonyms?
Howdy,
I created some indexes that use a SynonymAnalyzer and now I want to be
able to offer a choice as to search the synonyms or not. If I search
now it will find all docs since the analyzer created tokens in the same
position. How do I tell my IndexSearcher to not look at those tokens
within certain fields?
Thanks,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Search w/o looking at synonyms?
Posted by Yonik Seeley <yo...@apache.org>.
On 8/6/06, Michael J. Prichard <mi...@mac.com> wrote:
> I created some indexes that use a SynonymAnalyzer and now I want to be
> able to offer a choice as to search the synonyms or not.
The simplest method is to index the field more than once... one with
synonyms, one without.
-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org