Index time is a much better approach. The only negative about it is the index size increase. I've used it for a considerable sized dataset and even the index time doesn't seem to go up considerably. Searching of multiple terms is generally unoptimized when you can do it with 1.
-- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw............ On Tue, Mar 23, 2010 at 4:03 PM, Ahmet Arslan <iori...@yahoo.com> wrote: > > > > I'd like to use the synonymy in my project. And I think > > there's two > > candidates solution : > > 1. using the synonymy in the indexing stage, enhance the > > index by using > > synonymy > > 2. using the synonymy in the search stage, enhance the > > search query by > > synonymy . > > > > I'd like to know which one is better, any help is > > appreciated. > > It is advised to use synonyms at index time for various reasons (idf > differences, multi-word synonyms) [1]. > [1] > http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >