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 C2A921855D for ; Tue, 16 Feb 2016 11:56:39 +0000 (UTC) Received: (qmail 12526 invoked by uid 500); 16 Feb 2016 11:56:37 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 12455 invoked by uid 500); 16 Feb 2016 11:56:37 -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 12444 invoked by uid 99); 16 Feb 2016 11:56:37 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2016 11:56:37 +0000 Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 23F171A0046 for ; Tue, 16 Feb 2016 11:56:37 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id xk3so253671667obc.2 for ; Tue, 16 Feb 2016 03:56:37 -0800 (PST) X-Gm-Message-State: AG10YOTSOrrHjpS5YkGSfjVy9lOwezyZ/aSs+w5aHnx2IJV7Odc/YCB0/W2d8OPsTFSUnh0l4UZUfI58ukyf2A== MIME-Version: 1.0 X-Received: by 10.202.180.137 with SMTP id d131mr15838333oif.135.1455623795547; Tue, 16 Feb 2016 03:56:35 -0800 (PST) Received: by 10.202.48.137 with HTTP; Tue, 16 Feb 2016 03:56:35 -0800 (PST) In-Reply-To: References: <1455539837623-4257367.post@n3.nabble.com> <1455542430632-4257378.post@n3.nabble.com> <1455559819167-4257420.post@n3.nabble.com> <1455599921170-4257510.post@n3.nabble.com> <56C2D64F.9040801@sematext.com> Date: Tue, 16 Feb 2016 11:56:35 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: SOLR ranking From: Alessandro Benedetti To: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=001a113cc54642a933052be1d3f1 --001a113cc54642a933052be1d3f1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If I remember well , it is going to be as a phrase query ( when you use the "quotes") . So the close proximity means a match of the phrase with 0 tolerance ( so the terms must respect the position distance in the query). If I remember well I debugged that recently. Cheers On 16 February 2016 at 11:42, Modassar Ather wrote= : > Actually you can get it with the edismax. > Just set mm to 100% and then configure a pf field ( or more) . > You are going to search all the search terms mandatory and boost phrases > match . > > @Alessandro Thanks for your insight. > I thought that the document will be boosted if all of the terms appear in > close proximity by setting pf. Not sure how much is meant by the close > proximity. Checked it on dismax query parser wiki too. > > Best, > Modassar > > On Tue, Feb 16, 2016 at 3:36 PM, Alessandro Benedetti < > abenedetti@apache.org > > wrote: > > > Binoy, the omitTermFreqAndPositions is set only for text_ws which is us= ed > > only on the "indexed_terms" field. > > The text_general fields seem fine to me. > > > > Are you omitting norms on purpose ? To be fair it could be relevant in > > title or short topic searches to boost up short field values, containin= g > a > > lot of terms from the searched query. > > > > To respond Modassar : > > > > I don't think the phrase will be searched as individual ANDed terms unt= il > > > the query has it like below. > > > "Eating Disorders" OR (Eating AND Disorders). > > > > > > > Actually you can get it with the edismax. > > Just set mm to 100% and then configure a pf field ( or more) . > > You are going to search all the search terms mandatory and boost phrase= s > > match . > > > > Cheers > > > > On 16 February 2016 at 07:57, Emir Arnautovic < > > emir.arnautovic@sematext.com> > > wrote: > > > > > Hi Nitin, > > > You can use pf parameter to boost results with exact phrase. You can > also > > > use pf2 and pf3 to boost results with bigrams (phrase matches with 2 > or 3 > > > words in case input is with more than 3 words) > > > > > > Regards, > > > Emir > > > > > > > > > On 16.02.2016 06:18, Nitin.K wrote: > > > > > >> I am using edismax parser with the following query: > > >> > > >> > > >> > > > localhost:8983/solr/tgl/select?q=3Deating%20disorders&wt=3Dxml&tie=3D1.0&= rows=3D200&q.op=3DAND&indent=3Dtrue&defType=3Dedismax&stopwords=3Dtrue&lowe= rcaseOperators=3Dtrue&debugQuery=3Dtrue&qf=3Dtopic_title%5E100+subtopic_tit= le%5E40+index_term%5E20+drug%5E15+content%5E3&pf2=3DtopTitle%5E200+subTopTi= tle%5E80+indTerm%5E40+drugString%5E30+content%5E6 > > >> > > >> Configuration of schema.xml > > >> > > >> > stored=3D"true" > > >> /> > > >> > > >> > > >> > >> stored=3D"true"/> > > >> stored=3D"false"/> > > >> > > >> > >> multiValued=3D"true"/> > > >> > >> multiValued=3D"true"/> > > >> > > >> > >> multiValued=3D"true"/> > > >> > >> multiValued=3D"true"/> > > >> > > >> stored=3D"true"/> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> positionIncrementGap=3D"100" omitNorms=3D"true"> > > >> > > >> > class=3D"solr.StandardTokenizerFactory"/> > > >> > >> ignoreCase=3D"true" > > >> words=3D"stopwords.txt" /> > > >> > > >> > > >> > > >> > class=3D"solr.StandardTokenizerFactory"/> > > >> > >> ignoreCase=3D"true" > > >> words=3D"stopwords.txt" /> > > >> > >> synonyms=3D"synonyms.txt" > > >> ignoreCase=3D"true" expand=3D"true"/> > > >> > > >> > > >> > > >> > >> positionIncrementGap=3D"100" > > >> omitTermFreqAndPositions=3D"true" omitNorms=3D"true"> > > >> > > >> > >> class=3D"solr.WhitespaceTokenizerFactory"/> > > >> > >> ignoreCase=3D"true" > > >> words=3D"stopwords.txt" /> > > >> > > >> > > >> > > >> > > >> > > >> I want , if user will search for a phrase then that pharse should > always > > >> takes the priority in comaprison to the individual words; > > >> > > >> Example: "Eating Disorders" > > >> > > >> First it will search for "Eating Disorders" together and then the > > >> individual > > >> words "Eating" and "Disorders" > > >> but while searching for individual words, it will always return thos= e > > >> documents where both the words should exist for which i am already > using > > >> q.op=3D"AND" in my query. > > >> > > >> Thanks, > > >> Nitin > > >> > > >> > > >> > > >> > > >> -- > > >> View this message in context: > > >> > http://lucene.472066.n3.nabble.com/SOLR-ranking-tp4257367p4257510.html > > >> Sent from the Solr - User mailing list archive at Nabble.com. > > >> > > > > > > -- > > > Monitoring * Alerting * Anomaly Detection * Centralized Log Managemen= t > > > Solr & Elasticsearch Support * http://sematext.com/ > > > > > > > > > > > > -- > > -------------------------- > > > > Benedetti Alessandro > > Visiting card : http://about.me/alessandro_benedetti > > > > "Tyger, tyger burning bright > > In the forests of the night, > > What immortal hand or eye > > Could frame thy fearful symmetry?" > > > > William Blake - Songs of Experience -1794 England > > > --=20 -------------------------- Benedetti Alessandro Visiting card : http://about.me/alessandro_benedetti "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England --001a113cc54642a933052be1d3f1--