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 <de...@ravellaw.com> > 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 > twitter.com/deliprao >