lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni Bricconi <>
Subject Re: Using a dictionary to boost queries
Date Tue, 30 Jul 2013 11:06:13 GMT
Maybe you can try with synonyms
add a

<filter class="solr.SynonymFilterFactory" synonyms="special_words.txt" />

to the field type you are using for text and then place

habeas corpus => habeascorpusxx

int the special_words.txt file

then reindex some documents and try some queries with debugQuery=true.
remember to reload the core when changing configuration.

2013/7/29 Delip Rao <>

> I have a dictionary of domain specific terms and I want to be able to
> automatically boost occurrences of those terms in a query. These terms
> could either be single word or multi-word phrases, like "supreme court",
> "habeas corpus", etc. So if the query was 'habeas corpus germany' (without
> the quotes), I want to be able to translate it to something like:
> habeas defaultOperator corpus defaultOperator germany defaultOperator
> "habeas corpus"^2
> What is the best practice for doing this in Solr? Please excuse if this
> elementary, just started picking up Solr.
> Thanks,
> Delip

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message