Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DAC76101AB for ; Fri, 11 Apr 2014 16:09:16 +0000 (UTC) Received: (qmail 56292 invoked by uid 500); 11 Apr 2014 16:09:11 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 56234 invoked by uid 500); 11 Apr 2014 16:09:10 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 56216 invoked by uid 99); 11 Apr 2014 16:09:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2014 16:09:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of SRS0=k4s5VJ=ZL=basetechnology.com=jack@yourhostingaccount.com designates 65.254.253.81 as permitted sender) Received: from [65.254.253.81] (HELO mailout10.yourhostingaccount.com) (65.254.253.81) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2014 16:09:01 +0000 Received: from mailscan24.yourhostingaccount.com ([10.1.15.24] helo=mailscan24.yourhostingaccount.com) by mailout10.yourhostingaccount.com with esmtp (Exim) id 1WYe0K-0003VK-MQ for solr-user@lucene.apache.org; Fri, 11 Apr 2014 12:08:38 -0400 Received: from impout02.yourhostingaccount.com ([10.1.55.2] helo=impout02.yourhostingaccount.com) by mailscan24.yourhostingaccount.com with esmtp (Exim) id 1WYe0K-0004u1-J6 for solr-user@lucene.apache.org; Fri, 11 Apr 2014 12:08:36 -0400 Received: from walauthsmtp16.yourhostingaccount.com ([10.1.18.16]) by impout02.yourhostingaccount.com with NO UCE id og8c1n00D0LoD9W01g8cRf; Fri, 11 Apr 2014 12:08:36 -0400 X-Authority-Analysis: v=2.0 cv=Y4J6Q2iN c=1 sm=1 a=UkMH5KcvGpXfM81wB0t8ug==:17 a=aQzbgH187woA:10 a=hkX1xMHqJIMA:10 a=3jZET7lWBKwA:10 a=8nJEP1OIZ-IA:10 a=jvYhGVW7AAAA:8 a=mV9VRH-2AAAA:8 a=F2PCduXAiwHsWIyZjnoA:9 a=wPNLvfGTeEIA:10 a=ltXMujfcukYoTVgNOHxvog==:117 X-EN-OrigOutIP: 10.1.18.16 X-EN-IMPSID: og8c1n00D0LoD9W01g8cRf Received: from 207-237-113-28.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com ([207.237.113.28]:60927 helo=JackKrupansky14) by walauthsmtp16.yourhostingaccount.com with esmtpa (Exim) id 1WYe0K-0008RO-Bl for solr-user@lucene.apache.org; Fri, 11 Apr 2014 12:08:36 -0400 Message-ID: From: "Jack Krupansky" To: References: <1C826AEAF55A244BB807F96C946150DF297B0B39@MBX114.d.ethz.ch> In-Reply-To: <1C826AEAF55A244BB807F96C946150DF297B0B39@MBX114.d.ethz.ch> Subject: Re: Search a list of words and returned order Date: Fri, 11 Apr 2014 12:08:34 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3522.110 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3522.110 X-EN-UserInfo: e0a4b55451ed9f27313ebf02e3d4348d:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: jack@basetechnology.com Sender: "Jack Krupansky" X-EN-OrigIP: 207.237.113.28 X-EN-OrigHost: 207-237-113-28.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com X-Virus-Checked: Checked by ClamAV on apache.org Generally, the documents containing more of the terms should score higher and be returned first, but "relevancy" for some terms can skew that ordering, to some degree. What specific use cases are failing for you? You can always add an additional optional subquery which is the AND of all terms and has a significant boost: q=see spot run (+see +spot +run)^10 -- Jack Krupansky -----Original Message----- From: Croci Francesco Luigi (ID SWS) Sent: Friday, April 11, 2014 9:47 AM To: 'solr-user@lucene.apache.org' Subject: Search a list of words and returned order When I search for a list of words, per default Solr uses the OR operator. In my case I index (pdfs) files. How/what can I do so that when I search the index for a list of words, I get the list of documents ordered first by the ones that have all the words in them? Thank you Francesco