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 5B5CD1844E for ; Sun, 1 Nov 2015 05:21:59 +0000 (UTC) Received: (qmail 84501 invoked by uid 500); 1 Nov 2015 05:21:55 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 84436 invoked by uid 500); 1 Nov 2015 05:21:55 -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 84424 invoked by uid 99); 1 Nov 2015 05:21:54 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2015 05:21:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5DDA118097A for ; Sun, 1 Nov 2015 05:21:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id dapRx7Mk3znK for ; Sun, 1 Nov 2015 05:21:53 +0000 (UTC) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 0971743B05 for ; Sun, 1 Nov 2015 05:21:53 +0000 (UTC) Received: by iodd200 with SMTP id d200so115853614iod.0 for ; Sat, 31 Oct 2015 22:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VfvzzLApBih2RFgeNbyTQRCXlNEhqSmHlDAjXo9pOXc=; b=JSp/g4fLKzCpMvYRmpiGcAgJFIbs69gRmyPfVqCpO0yiM9v4ZFdx+Wy8p9Cxn4BWAp V8KZ6fEk8kuhF6B5LsZLQkNLYRxojSe4TIl9tkOUcMtNH+wx1DI4N7xZ4JYTwEX+AESa rIW8QN8dGNluZLkGQHnUGcZmwx5clTSRU/m7tGG0N+78OnFrNahSQmLr6MXvYQ70Q1ZE HUjL2qvzvzzbQDdA4+ioLXMRCnXNpiAEs2sw0/EcNiIYta4QDIpUvhx/FXEftEanPfPO E7LxUPKVPevQ06srNYKhrpY/ob5qtRqppKNR7/LoK8qAb4+QNB4lXNf9U1xNy70f5sVt sFPA== MIME-Version: 1.0 X-Received: by 10.107.3.79 with SMTP id 76mr17227474iod.30.1446355306449; Sat, 31 Oct 2015 22:21:46 -0700 (PDT) Received: by 10.79.6.147 with HTTP; Sat, 31 Oct 2015 22:21:46 -0700 (PDT) In-Reply-To: References: Date: Sat, 31 Oct 2015 22:21:46 -0700 Message-ID: Subject: Re: Kate Winslet vs Winslet Kate From: Yangrui Guo To: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=001a113ea6c2429063052373d623 --001a113ea6c2429063052373d623 Content-Type: text/plain; charset=UTF-8 Thanks for the reply. Putting the name: before the terms did the work. I just wanted to generalize the search query because users might be interested in querying Kate Winslet herself or her movies. If user enter query string "Kate Winslet movie", the query q=name:(Kate AND Winslet AND movie) will return nothing. Yangrui Guo On Saturday, October 31, 2015, Erick Erickson wrote: > There are a couple of anomalies here. > > 1> kate AND winslet > What does the query look like if you add &debug=true to the statement > and look at the "parsed_query" section of the return? My guess is you > typed "q=name:kate AND winslet" which parses as "q=name:kate AND > default_search_field:winslet" and are getting matches you don't > expect. You need something like "q=name:(kate AND winslet)" or > "q=name:kate AND name:winslet". Note that if you're using eDIsmax it's > more complicated, but that should still honor the intent. > > 2> I have no idea why searching for "Kate Winslet" in quotes returns > anything, I wouldn't expect it to unless you mean you type in "q=kate > winslet" which is searching against your default field, not the name > field. > > Best, > Erick > > On Sat, Oct 31, 2015 at 8:52 PM, Yangrui Guo > wrote: > > Hi today I found an interesting aspect of solr. I imported IMDB data into > > solr. The IMDB puts last name before first name for its person's name > field > > eg. "Winslet, Kate". When I search "Winslet Kate" with quotation marks I > > could get the exact result. However if I search "Kate Winslet" or Kate > AND > > Winslet solr seem to return me all result containing either Kate or > Winslet > > which is similar to "Winslet Kate"~999999. From user perspective I > > certainly want solr to treat Kate Winslet the same as Winslet Kate. Is > > there anyway to make solr score higher for terms in the same field? > > > > Yangrui > --001a113ea6c2429063052373d623--