Hi all,
I have documents which are (manually) tagged whith categories. Each
category-document relation has a weight between 1 and 5:
5: document fits perfectly in this category,
.
.
1: document may be considered as belonging to this category.
I would now like to use this information with solr. At the moment, I don't use
the weight at all:
field name=category type=string indexed=true stored=true
multiValued=true/
Both the category as well as the document body are specified as query fields
(str name=qf in solrconfig.xml).
What I would like is the following:
- filter: category=some_category_name, query: *.* - Results should be score by
the above mentioned weight
- filter: category=some_category_name, query: some_keyword - Results should be
scored by a combination of the score of 'some_keyword' and the above mentioned
weight
- filter: none, query: some_category_name - Documents with category
'some_category_name' should be found as well as documents which contain the
term
'some_category_name'. Results should be scored by a combination of the score of
'some_keyword' and the above mentioned weight
Do you have any ideas how this could be done?
Thanks in advance
Michi