RE: Question about sorting by a field

2012-01-20 Thread federico.wachs
Yes, that works! I had to boost the firstDestination field to have it well sorted. Any ideas why the score might be equally for all the documents returned? Thanks a lot! Federico -- View this message in context: http://lucene.472066.n3.nabble.com/Question-about-sorting-by-a-field

RE: Question about sorting by a field

2012-01-19 Thread Michael Ryan
How about having a single-valued field named "firstDestination" that has the first destination in the list, and then your query could be something like 'destination:"Buenos Aires" firstDestination:"Buenos Aires"'. Docs that match both should have a higher score and thus will be listed first. -M

Question about sorting by a field

2012-01-19 Thread federico.wachs
t doesn't seem to be working on my end so far. Thanks in advanced! Federico -- View this message in context: http://lucene.472066.n3.nabble.com/Question-about-sorting-by-a-field-tp3673491p3673491.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Question about sorting by coordination factor

2011-06-02 Thread Erick Erickson
Ahhh, you're right. I know there's been some discussion in the past about how to find out the number of terms that matched, but don't remember the outcome off-hand. You might try searching the mail archive for something like "number of matching terms" or some such. Sorry I'm not more help Erick O

Re: Question about sorting by coordination factor

2011-06-02 Thread Jesus Gabriel y Galan
On 02/06/11 13:32, Erick Erickson wrote: Say you're trying to match terms A, B, C. Would something like (A AND B AND C)^1000 OR (A AND B)^100 OR (A AND C)^100 OR (B AND C)^100 OR A OR B OR C work? It wouldn't be an absolute ordering, but it would tend to push the documents where all three terms

Re: Question about sorting by coordination factor

2011-06-02 Thread Erick Erickson
Say you're trying to match terms A, B, C. Would something like (A AND B AND C)^1000 OR (A AND B)^100 OR (A AND C)^100 OR (B AND C)^100 OR A OR B OR C work? It wouldn't be an absolute ordering, but it would tend to push the documents where all three terms matched toward the top. It would get real

Question about sorting by coordination factor

2011-06-02 Thread Jesus Gabriel y Galan
Hi, I am trying to solve a sorting problem using Solr. The sorting requirements are a bit complicated. I have to sort the documents by three different criteria: - First by number of keywords that match (coordination factor) - Then, within the documents that match the same number of keywords, s

Re: question about sorting

2007-06-12 Thread Yonik Seeley
On 6/12/07, Xuesong Luo <[EMAIL PROTECTED]> wrote: Thanks, Yonik. Unfortunately we have users whose first names contain more than one word, it seems copy field is my only option. Yes, if you need to be able to match on part of a first name, rather than just exact first name. -Yonik

RE: question about sorting

2007-06-12 Thread Xuesong Luo
-user@lucene.apache.org Subject: Re: question about sorting On 6/11/07, Xuesong Luo <[EMAIL PROTECTED]> wrote: > For example, first name, department, job title etc. Something like first name might be able to be a single field that is searchable and sortable (use a keyword tokenizer foll

Re: question about sorting

2007-06-12 Thread Yonik Seeley
On 6/11/07, Xuesong Luo <[EMAIL PROTECTED]> wrote: For example, first name, department, job title etc. Something like first name might be able to be a single field that is searchable and sortable (use a keyword tokenizer followed by a lowercase filter). If the field contains multiple words, an

RE: question about sorting

2007-06-11 Thread Xuesong Luo
For example, first name, department, job title etc. Thanks Xuesong -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yonik Seeley Sent: Monday, June 11, 2007 6:35 PM To: solr-user@lucene.apache.org Subject: Re: question about sorting On 6/11/07, Xuesong

Re: question about sorting

2007-06-11 Thread Yonik Seeley
On 6/11/07, Xuesong Luo <[EMAIL PROTECTED]> wrote: My sorting fields include both TextField type and StrField type. Because TextField uses TokenizerFactory, they can't be sorted. I have to copy each TextField to a StrField and sort on those StrFields. Does anyone know if there is a better way to

question about sorting

2007-06-11 Thread Xuesong Luo
Hi, My sorting fields include both TextField type and StrField type. Because TextField uses TokenizerFactory, they can't be sorted. I have to copy each TextField to a StrField and sort on those StrFields. Does anyone know if there is a better way to do that? Thanks Xuesong