You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "piyush nayak (JIRA)" <ji...@apache.org> on 2018/05/10 11:33:00 UTC
[jira] [Created] (SOLR-12340) Solr 7 does not do a phrase search by
default for certain queries.
piyush nayak created SOLR-12340:
-----------------------------------
Summary: 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)
Components: SolrJ
Affects Versions: 7.2
Environment: windows 7 x64
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
Fix For: 7.2.1
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=test3&fq=test&wt=json&indent=true&debugQuery=true]
"debug":{
"rawquerystring":"test3",
"querystring":"test3",
"parsedquery":"contents:test contents:3",
"parsedquery_toString":"contents:test contents:3",
-----------------------------------------------------------------------------------------------------------
lucene/solr-spec 5.2.1
[http://localhost:8989/solr/solr4/select?q=test3&fq=test&wt=json&indent=true&debugQuery=true]
"debug":{
"rawquerystring":"test3",
"querystring":"test3",
"parsedquery":"PhraseQuery(contents:\"test 3\")",
"parsedquery_toString":"contents:\"test 3\"",
----------------------------------------------------------------------------------------------------------------
passing "sow=true" 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 from the default template folder to the collections's conf folder.
The fieldtype that corresponds to field "contents" is "text", and the definition of "text" field in 5 and the schema backup on 7 is the same.
I tried the analysis tab. Looks like all the classes (WT, SF ...) in 7 list a property (termFrequency = 1) that is missing in 5.
attaching the schema for Solr 5 and 7.
--
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