Debug response given below,

<lst name="debug">
<str name="rawquerystring">(stnostem:((옵티머스 OR "엘지 스마트폰") AND NOT 
stnostem:("옵티머스 프라임" OR 프라임)))</str>
<str name="querystring">(stnostem:((옵티머스 OR "엘지 스마트폰") AND NOT stnostem:("옵티머스 
프라임" OR 프라임)))</str>
<str name="parsedquery">+(stnostem:옵티머스 PhraseQuery(stnostem:"엘지 스마트폰")) 
-(PhraseQuery(stnostem:"옵티머스 프라임") stnostem:프라임)</str>
<str name="parsedquery_toString">+(stnostem:옵티머스 stnostem:"엘지 스마트폰") 
-(stnostem:"옵티머스 프라임" stnostem:프라임)</str>
<lst name="explain">
<str name="tw_288970991894405121">
5.790719 = (MATCH) sum of:
5.790719 = (MATCH) sum of:
1.2903354 = (MATCH) weight(stnostem:옵티머스 in 257434), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
3.1428187 = (MATCH) fieldWeight(stnostem:옵티머스 in 257434), product of:
1.4142135 = tf(termFreq(stnostem:옵티머스)=2)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.1875 = fieldNorm(field=stnostem, doc=257434)
4.5003834 = (MATCH) weight(stnostem:"엘지 스마트폰" in 257434), product of:
0.9118307 = queryWeight(stnostem:"엘지 스마트폰"), product of:
26.322916 = idf(stnostem: 엘지=141 스마트폰=16295)
0.034640186 = queryNorm
4.935547 = fieldWeight(stnostem:"엘지 스마트폰" in 257434), product of:
1.0 = tf(phraseFreq=1.0)
26.322916 = idf(stnostem: 엘지=141 스마트폰=16295)
0.1875 = fieldNorm(field=stnostem, doc=257434)
</str><str name="tw_294014918032752640">
2.43308 = (MATCH) sum of:
2.43308 = (MATCH) product of:
4.86616 = (MATCH) sum of:
4.86616 = (MATCH) weight(stnostem:옵티머스 in 1704882), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
11.852312 = (MATCH) fieldWeight(stnostem:옵티머스 in 1704882), product of:
1.0 = tf(termFreq(stnostem:옵티머스)=1)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
1.0 = fieldNorm(field=stnostem, doc=1704882)
0.5 = coord(1/2)
</str><str name="tw_294055248006365184">
2.43308 = (MATCH) sum of:
2.43308 = (MATCH) product of:
4.86616 = (MATCH) sum of:
4.86616 = (MATCH) weight(stnostem:옵티머스 in 1991325), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
11.852312 = (MATCH) fieldWeight(stnostem:옵티머스 in 1991325), product of:
1.0 = tf(termFreq(stnostem:옵티머스)=1)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
1.0 = fieldNorm(field=stnostem, doc=1991325)
0.5 = coord(1/2)
</str><str name="tw_251577091374608384">
1.8751596 = (MATCH) sum of:
1.8751596 = (MATCH) product of:
3.7503192 = (MATCH) sum of:
3.7503192 = (MATCH) weight(stnostem:"엘지 스마트폰" in 2408458), product of:
0.9118307 = queryWeight(stnostem:"엘지 스마트폰"), product of:
26.322916 = idf(stnostem: 엘지=141 스마트폰=16295)
0.034640186 = queryNorm
4.1129556 = fieldWeight(stnostem:"엘지 스마트폰" in 2408458), product of:
1.0 = tf(phraseFreq=1.0)
26.322916 = idf(stnostem: 엘지=141 스마트폰=16295)
0.15625 = fieldNorm(field=stnostem, doc=2408458)
0.5 = coord(1/2)
</str><str name="tw_292579271883493377">
1.7204473 = (MATCH) sum of:
1.7204473 = (MATCH) product of:
3.4408946 = (MATCH) sum of:
3.4408946 = (MATCH) weight(stnostem:옵티머스 in 1536527), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
8.38085 = (MATCH) fieldWeight(stnostem:옵티머스 in 1536527), product of:
1.4142135 = tf(termFreq(stnostem:옵티머스)=2)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.5 = fieldNorm(field=stnostem, doc=1536527)
0.5 = coord(1/2)
</str><str name="tw_291835602784096256">
1.5803317 = (MATCH) sum of:
1.5803317 = (MATCH) product of:
3.1606634 = (MATCH) sum of:
3.1606634 = (MATCH) weight(stnostem:옵티머스 in 171794), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
7.6983023 = (MATCH) fieldWeight(stnostem:옵티머스 in 171794), product of:
1.7320508 = tf(termFreq(stnostem:옵티머스)=3)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.375 = fieldNorm(field=stnostem, doc=171794)
0.5 = coord(1/2)
</str><str name="tw_288889890693844992">
1.520675 = (MATCH) sum of:
1.520675 = (MATCH) product of:
3.04135 = (MATCH) sum of:
3.04135 = (MATCH) weight(stnostem:옵티머스 in 1501162), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
7.407695 = (MATCH) fieldWeight(stnostem:옵티머스 in 1501162), product of:
1.0 = tf(termFreq(stnostem:옵티머스)=1)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.625 = fieldNorm(field=stnostem, doc=1501162)
0.5 = coord(1/2)
</str><str name="tw_288889911099138048">
1.520675 = (MATCH) sum of:
1.520675 = (MATCH) product of:
3.04135 = (MATCH) sum of:
3.04135 = (MATCH) weight(stnostem:옵티머스 in 1501169), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
7.407695 = (MATCH) fieldWeight(stnostem:옵티머스 in 1501169), product of:
1.0 = tf(termFreq(stnostem:옵티머스)=1)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.625 = fieldNorm(field=stnostem, doc=1501169)
0.5 = coord(1/2)
</str><str name="tw_288935029038514176">
1.520675 = (MATCH) sum of:
1.520675 = (MATCH) product of:
3.04135 = (MATCH) sum of:
3.04135 = (MATCH) weight(stnostem:옵티머스 in 2006207), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
7.407695 = (MATCH) fieldWeight(stnostem:옵티머스 in 2006207), product of:
1.0 = tf(termFreq(stnostem:옵티머스)=1)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.625 = fieldNorm(field=stnostem, doc=2006207)
0.5 = coord(1/2)
</str><str name="tw_289572955447492608">
1.520675 = (MATCH) sum of:
1.520675 = (MATCH) product of:
3.04135 = (MATCH) sum of:
3.04135 = (MATCH) weight(stnostem:옵티머스 in 1338974), product of:
0.4105663 = queryWeight(stnostem:옵티머스), product of:
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.034640186 = queryNorm
7.407695 = (MATCH) fieldWeight(stnostem:옵티머스 in 1338974), product of:
1.0 = tf(termFreq(stnostem:옵티머스)=1)
11.852312 = idf(docFreq=5632, maxDocs=290963725)
0.625 = fieldNorm(field=stnostem, doc=1338974)
0.5 = coord(1/2)
</str></lst>



> From: j...@basetechnology.com
> To: solr-user@lucene.apache.org
> Subject: Re: Not condition not working for Korean search
> Date: Mon, 11 Feb 2013 00:37:03 -0500
> 
> Show us the parsed query that you get with &debugQuery=true
> 
> Actually this may be the "pure negative" bug where you need to change:
> 
> A AND -B
> 
> into
> 
> A AND (*:* -B)
> 
> -- Jack Krupansky
> 
> -----Original Message----- 
> From: Cool Techi
> Sent: Monday, February 11, 2013 12:30 AM
> To: solr-user@lucene.apache.org
> Subject: Not condition not working for Korean search
> 
> Any help here, still not able to understand what might be causing this. I 
> have tried all combinations below, but to no avail,
> 
> (stnostem:((옵티머스 OR "엘지 스마트폰") AND NOT stnostem:("옵티머스 프라임" 
> OR 프라임)))
> 
> (stnostem:((옵티머스 OR "엘지 스마트폰") AND - stnostem:("옵티머스 프라임" 
> OR 프라임)))
> 
> What could be wrong here.
> 
> 
> 
> From: cooltec...@outlook.com
> To: solr-user@lucene.apache.org
> Subject: Not condition not working for Korean search
> Date: Thu, 7 Feb 2013 19:46:13 +0530
> 
> 
> 
> 
> Hi,
> 
> I am no Korean expert and am finding it difficult to fix this, my client is 
> searching for the following query, but the NOT condition doesn't seem to be 
> working.
> 
> (stnostem:((옵티머스 OR "엘지 스마트폰") AND NOT ("옵티머스 프라임" OR 
> 프라임)))
> 
> the search result (xml attached ) return result with the not condition 
> keywords? How can this be fixed.
> 
> Regards,
> Ayush
>  
> 
                                          

Reply via email to