On 10/19/07, Chris Hostetter [EMAIL PROTECTED] wrote:
(it doesn't matter that parseSort
returns null when the sort string is just score ... SolrIndexSearcher
recognizes a null Sort as being the default sort by score)
Yep... FYI, I did this early on specifically because no sort and
score desc
: Besides the typo :), the only problem for what I want is the fact that it
: returns null for a default score sort instead of setting
: SortField.FIELD_SCORE. I want a default score desc sort, but I want the
: scores from the lucene Hits object. Is the only way to get score values to
: modify
Ah ha, perfect. That worked brilliantly. In case anyone is interested,
it turns out that defining id score as the field list for the standard
request handler in solrconfig.xml does the same thing.
requestHandler name=standard class=solr.StandardRequestHandler
!-- default values for
query.
There's a
: flag in SolrIndexSearcher, GET_SCORES, that looks like it should
trigger
: setting the scores array for the resulting DocList, but I can't figure
out how
: to set it. Any suggestions? I'm using the svn trunk code.
Can you elaborate (ie: paste some code examples) on how
a default score desc sort, but I want the
scores from the lucene Hits object. Is the only way to get score values
to modify the solr code?
Thanks,
-jrr
Chris Hostetter wrote:
: The scores list in DocIterator is null after a successful query. There's a
: flag in SolrIndexSearcher, GET_SCORES
list in DocIterator is null after a successful query. There's a
: flag in SolrIndexSearcher, GET_SCORES, that looks like it should trigger
: setting the scores array for the resulting DocList, but I can't figure out how
: to set it. Any suggestions? I'm using the svn trunk code.
Can you
: The scores list in DocIterator is null after a successful query. There's a
: flag in SolrIndexSearcher, GET_SCORES, that looks like it should trigger
: setting the scores array for the resulting DocList, but I can't figure out how
: to set it. Any suggestions? I'm using the svn trunk code