Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Search w/o looking at synonyms?

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


michael_prichard at mac

Aug 6, 2006, 10:31 AM

Post #1 of 2 (348 views)
Permalink
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 [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


yonik at apache

Aug 6, 2006, 10:59 AM

Post #2 of 2 (327 views)
Permalink
Re: Search w/o looking at synonyms? [In reply to]

On 8/6/06, Michael J. Prichard <michael_prichard [at] mac> 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 [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.