Hi,
     I have explored "DisMaxRequestHandler". It could serve for some
of my purposes but not all.
1) It seems we have to decide that alternative field list beforehand
and declare them in the config.xml . But the field list for which
synonyms are to be considered is not definite ( at least in the view
of declaring manually in the xml ), its getting updated frequently
depending upon the indexed fiels. Anyways if the list is too big its
hard to follow this approach.

2) I have another issue too.. We could mention city , place, town in
the dismax declaration, but what if there is another list of synonyms
like .. if the query is "organisation : xyz".. for which I would like
to convert the query to
      organisation:xyz OR company:xyz OR institution:xyz .

   As far as I explored it is not possible to link city, organisation
to their corresponding synonyms seperately, but we can only decalre a
set of default field names to be searched.
     If I am wrong at any point, please let me know.
      Any other suggestions?
Thanks.


2009/12/22 AHMET ARSLAN <iori...@yahoo.com>:
>
>> Hello All,
>>             I have been
>> trying to find out the right place to parse
>> the query submitted. To be brief, I need to expand the
>> query. For
>> example.. let the query be
>>        city:paris
>> then I would like to expand the query as .. follows
>>     city:paris OR place:paris OR town:paris .
>>
>>      I guess the synonym support is
>> provided only for values but not
>> field names.
>
> Why not use DisMaxRequestHandler?
> "...search for the individual words across several fields..."
> http://wiki.apache.org/solr/DisMaxRequestHandler
>
>
>
>

Reply via email to