Re: Re:Re: Why do I get different results for the same query with two Solr versions?
Hi, thank for the comment, but I tried to use both "sow=false" and "saw=true" and I still get the same result. For query (TITLE_ItemCode_t:KI_7) I still see: Solr 4.6: "parsedquery": "PhraseQuery(TITLE_ItemCode_t:\"ki 7\")" Solr 7.5: "parsedquery":"+(+(TITLE_ItemCode_t:ki7 (+TITLE_ItemCode_t:ki +TITLE_ItemCode_t:7)))" Tulsi wrote > Hi , > Yes this look like related to sow (split on whitespace) param default > behaviour change in solr 7. > > The sow parameter (short for "Split on Whitespace") now defaults to > false, which allows support for multi-word synonyms out of the box. > This parameter is used with the eDismax and standard/"lucene" query > parsers. If this parameter is not explicitly specified as true, query > text will not be split on whitespace before analysis. > > https://lucene.apache.org/solr/guide/7_0/major-changes-in-solr-7.html > > > On Sun, 27 Dec, 2020, 8:25 pm nettadalet, < > nsteinberg@ > > wrote: > >> I added "defType=lucene" to both searches to make sure I use the same >> query >> parser, but it didn't change the results. >> >> >> >> -- >> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html >> -- Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re:Re: Re:Re: Why do I get different results for the same query with two Solr versions?
SOW default to false? but this seems to be true right?? For Solr 7.5 I get "parsedquery":"+(+(text1:ki7 (+text1:ki +text1:7)))" At 2020-12-28 01:13:29, "Tulsi Das" wrote: >Hi , >Yes this look like related to sow (split on whitespace) param default >behaviour change in solr 7. > >The sow parameter (short for "Split on Whitespace") now defaults to >false, which allows support for multi-word synonyms out of the box. >This parameter is used with the eDismax and standard/"lucene" query >parsers. If this parameter is not explicitly specified as true, query >text will not be split on whitespace before analysis. > >https://lucene.apache.org/solr/guide/7_0/major-changes-in-solr-7.html > > >On Sun, 27 Dec, 2020, 8:25 pm nettadalet, wrote: > >> I added "defType=lucene" to both searches to make sure I use the same query >> parser, but it didn't change the results. >> >> >> >> -- >> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html >>
Re: Re:Re: Why do I get different results for the same query with two Solr versions?
Hi , Yes this look like related to sow (split on whitespace) param default behaviour change in solr 7. The sow parameter (short for "Split on Whitespace") now defaults to false, which allows support for multi-word synonyms out of the box. This parameter is used with the eDismax and standard/"lucene" query parsers. If this parameter is not explicitly specified as true, query text will not be split on whitespace before analysis. https://lucene.apache.org/solr/guide/7_0/major-changes-in-solr-7.html On Sun, 27 Dec, 2020, 8:25 pm nettadalet, wrote: > I added "defType=lucene" to both searches to make sure I use the same query > parser, but it didn't change the results. > > > > -- > Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html >
Re: Re:Re: Why do I get different results for the same query with two Solr versions?
I added "defType=lucene" to both searches to make sure I use the same query parser, but it didn't change the results. -- Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re: Re:Re: Why do I get different results for the same query with two Solr versions?
I'm not sure how to check the implementation of the query parser, or how to change the query parser that I use. I think I'm using the standard query parser. I use Solr Admin to run the queries. If I look at the URL, I see Solr 4.6: select?q=TITLE_ItemCode_t:KI_7&fl=TITLE_ItemCode_t Solr 7.5: select?q=TITLE_ItemCode_t:KI_7&fl=TITLE_ItemCode_t Should I change something? Where should I look? -- Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re:Re: Why do I get different results for the same query with two Solr versions?
which query parser are you using? I think to answer your question, you need to check the implementation of the query parser At 2020-12-27 21:23:59, "nettadalet" wrote: >Thank you, that was helpful! > >For Solr 4.6 I get >"parsedquery": "PhraseQuery(TITLE_ItemCode_t:\"ki 7\")" > >For Solr 7.5 I get >"parsedquery":"+(+(TITLE_ItemCode_t:ki7 (+TITLE_ItemCode_t:ki >+TITLE_ItemCode_t:7)))" > >So this is the cause of the difference in the search result, but I still >don't know why the parsedquery is different between the two versions. >Any idea/guess? >Is it some internal implementation that changed sometime between 4.6 and >7.5? > > > >-- >Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html