Hello,
I am trying to find a solution for a specific search context that is not 
working the way I expect it to work.
Let me explain in detail:
The setup
I have a Solr instance setup with data (about 3.5 million documents). The 
schema has been setup with searchable text fields etc; One of the fields is 
called the Title which contains the title of the document.

Search Context:
On finding that support for multi-word synonyms in Solr is problematic, we are 
using using query based approach for dealing with synonyms.
For a given search term, the search process is:

1.       Identify the synonyms of the search term from a non-Solr source

2.       String together the search term and synonyms as the basis for Solr 
search (in the form "srch term" "synonym a" "synonym b")

3.       Influence the results with two boost factors:

a.       Using bq and the search text in the form bq= 
(srch+term+synonym+a+synonym+b)^10

b.       Using bf on a field bf=product(EarnFactor,0.15)

As you can see the idea behind the use of synonyms is to ensure that the user 
entered term and its variations are used in searching for matches; and the use 
of bq on the title is for the very same reason.

The results returned by Solr are not per expectations and based on 
experimentation the observation is that the bq boost is the reason for this; if 
the bq boost is taken away, the results look decent, but the weightage that we 
are looking to assign for the term in the title is being completely lost.
Then we set the bq with the user entered term alone and the results seem decent 
but the shortcoming is that the titles with the equivalent terms are not in the 
mix.

While in the search context we are able to use/leverage the term based search 
text (search text within quotes), the bq boost does not seem to work with terms 
and that appears to be the source of our problem. I tried changing the search 
parameters so that individual bq's were used for the search term and it 
synonyms but that does not change the results in any manner.

The desire is that we would like to boost the score of a document should any of 
the terms used in the search appear in the title.

Any help in this context would be great.

I don't believe I can claim this to be a bug, because the documentation for bq 
does not describe the capability from a term perspective. It could be an 
enhancement request however.

We are using Solr 4.8. We were compelled to switch back from 6.2 to 4.8 because 
of performance issues with Group Facet.

Thanks & Regards
Shankar Krish

Reply via email to