Re: GET_SCORES flag in SolrIndexSearcher

2007-10-20 Thread Yonik Seeley
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

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread Chris Hostetter
: 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

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread John Reuning
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

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread Henrib
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

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread John Reuning
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

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread John Reuning
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

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-18 Thread Chris Hostetter
: 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