Hi,
I am using *Solr v6.2.1* .We are not getting accurate results using "sort
score desc".

let's assume we have a list of documents in our index as below

[{ "id": "1", "content": ["*java* developer"] },

{ "id": "2", "content": ["*Java* is object oriented.*Java* robust
language.Core *java* "] },

{ "id": "3", "content": ["*java* is platform independent. *Java* language."]
}]

Content is defined as multivalued field in the schema

<field name="content" type="text_general" *multiValued*="true"
indexed="true" stored="true"/>

when I search for java using below query

curl
http://localhost:8983/solr/test/select?fl=score,id&q=(java)&wt=json&sort=score
 desc

I am expecting the content with *Id :2* should come first as it contains
more matches related to java.But solr is giving inconsistent results.

Please suggest why I am not able to get desired results.



-- 

Thanks & Regards,

Prathyusha Kondeti  | Software Engineer

Software Development


[image: website-logo-org.png]

CEIPAL Solutions Pvt Ltd

Prashanthi Towers, 4th Floor, Road No: 92, Jubilee Hills, Hyderabad -
500033, INDIA

[O] +91-40-43515100  [M] +91 9848143513  [E]  prathyush...@ceipal.com  [W]
www.ceipal.com

<http://www.ceipal.com>

<http://www.ceipal.com>

[image: consider.png]
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.

Reply via email to