From dev-return-323011-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Tue May 22 17:44:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 7AB3A180638 for ; Tue, 22 May 2018 17:44:04 +0200 (CEST) Received: (qmail 30888 invoked by uid 500); 22 May 2018 15:44:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 30877 invoked by uid 99); 22 May 2018 15:44:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2018 15:44:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BC9E2CA0FE for ; Tue, 22 May 2018 15:44:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id yKODxXM8vqD5 for ; Tue, 22 May 2018 15:44:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 507685F4E5 for ; Tue, 22 May 2018 15:44:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8562DE00FC for ; Tue, 22 May 2018 15:44:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 49829217CC for ; Tue, 22 May 2018 15:44:00 +0000 (UTC) Date: Tue, 22 May 2018 15:44:00 +0000 (UTC) From: "Cassandra Targett (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SOLR-12340) Solr 7 does not do a phrase search by default for certain queries. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-12340?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Cassandra Targett updated SOLR-12340: ------------------------------------- Fix Version/s: (was: 7.2.1) > Solr 7 does not do a phrase search by default for certain queries. > ------------------------------------------------------------------ > > Key: SOLR-12340 > URL: https://issues.apache.org/jira/browse/SOLR-12340 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public)=20 > Components: SolrJ > Affects Versions: 7.2 > Environment: windows=C2=A07 x64=C2=A0 > solr-spec 5.2.1 > lucene-spec 5.2.1 > java.runtime.version 1.8.0_112-b15 > jetty.version 9.3.8.v20160314 > solr-spec 7.2.1 > lucene-impl 7.2.1 > java.version 9.0.4 > jetty.version 9.3.8.v20160314 > Reporter: piyush nayak > Priority: Major > Attachments: managed-schema-solr7, schema-solr5.xml > > > we have recently upgraded from Solr5 to Solr7. I'm running into a change = of behavior detailed below: > For the term "test3" Solr7 splits the numeric and alphabetical components= and does a simple term search while Solr 5 did a phrase search. > -------------------------------------------------------------------------= ------------------------------ > lucene/solr-spec: 7.2.1 > [http://localhost:8991/solr/solr4/select?q=3Dtest3&fq=3Dtest&wt=3Djson&in= dent=3Dtrue&debugQuery=3Dtrue] > =C2=A0 > "debug":{ > =C2=A0=C2=A0=C2=A0 "rawquerystring":"test3", > =C2=A0=C2=A0=C2=A0 "querystring":"test3", > =C2=A0=C2=A0=C2=A0 "parsedquery":"contents:test contents:3", > =C2=A0=C2=A0=C2=A0 "parsedquery_toString":"contents:test contents:3", > =C2=A0 > -------------------------------------------------------------------------= ---------------------------------- > lucene/solr-spec 5.2.1 > [http://localhost:8989/solr/solr4/select?q=3Dtest3&fq=3Dtest&wt=3Djson&in= dent=3Dtrue&debugQuery=3Dtrue] > =C2=A0 > "debug":{ > =C2=A0=C2=A0=C2=A0 "rawquerystring":"test3", > =C2=A0=C2=A0=C2=A0 "querystring":"test3", > =C2=A0=C2=A0=C2=A0 "parsedquery":"PhraseQuery(contents:\"test 3\")", > =C2=A0=C2=A0=C2=A0 "parsedquery_toString":"contents:\"test 3\"", > -------------------------------------------------------------------------= --------------------------------------- > passing "sow=3Dtrue" in the URL for Solr 7 makes it behave like 5. > The schema.xml in both Solr versions for me is the one that gets copied f= rom the default template folder to the collections's conf folder. > The fieldtype that corresponds to field "contents" is "text", and the def= inition of "text" field in 5 and the schema backup on 7 is the same. > =C2=A0 > I tried the analysis tab. Looks like all the classes (WT, SF ...) in 7 li= st a property (termFrequency =3D 1) that is missing in 5. > attaching the schema for Solr 5 and 7. > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org