: For the record, I figured out something that will work, although it is
: somewhat inelegant. My q parameter is now:
:
: (+content:notes -genre:Citation)^20 (+content:notes genre:Citation)^0.01
:
: Can I improve on that?
not really (although you can probably get cleaner seperate of query and
(Sorry for so many messages in a row...)
For the record, I figured out something that will work, although it is
somewhat inelegant. My q parameter is now:
(+content:notes -genre:Citation)^20 (+content:notes genre:Citation)^0.01
Can I improve on that?
On Mon, Oct 31, 2011 at 5:52 PM, Paul wrote
I studied the results with debugQuery, and I understand how the search
is working. The two scores for the two terms are added together, so
specifying a boost less than one still adds to the score. For
instance, in the first result, content:notes has a score of 1.4892359
and genre:Citation^0.01 has
I had been experimenting with bq.
I switched to boost like you suggested, and get the following error
from solr: "can not use FieldCache on multivalued field: genre"
But that sounds like the solution I'd want, if it worked, since it's
more flexible than having to reindex.
On Mon, Oct 31, 2011 at
Paul - look at debugQuery=true output to see why scores end up the way they do.
Use the explainOther to hone in on a specific document to get it's
explanation. The math'll tell you why it's working the way it is. It's more
than just likely that some other scoring factors are overweighting thi
Thanks Erik. They don't need to absolutely always be the bottom-most
-- just not near the top. But that sounds like an easy way to do it,
especially since it is a lot easier to reindex now than it used to be.
I would like to know why my query had no effect, though. There's
obviously something I do
Paul (*bows* to the NINES!) -
If you literally want Citations always at the bottom regardless of other
relevancy, then perhaps consider indexing boolean top_sort as true for
everything Citations and false otherwise, then use &sort=top_sort asc,score
desc (or do you need to desc top_sort? true
(I am using solr 3.4 and edismax.)
In my index, I have a multivalued field named "genre". One of the
values this field can have is "Citation". I would like documents that
have a genre field of Citation to always be at the bottom of the
search results.
I've been experimenting, but I can't seem to