Hi,

I'm trying to test payloads in Solr
Using solr 4.6.0 and the example configuration, i posted 3 docs to solr:

<add>
  <doc>
    <field name="id">1</field>
    <field name="title">Doc one</field>
    <field name="payloads">testone|100 testtwo|30 testthree|5</field>
    <field name="text">I testone, you testtwo, they testthree</field>
  </doc>
  <doc>
    <field name="id">2</field>
    <field name="title">Doc two</field>
    <field name="payloads">testone|30 testtwo|200 testthree|5</field>
    <field name="text">I testone, you testtwo, they testthree</field>
  </doc>
  <doc>
    <field name="id">3</field>
    <field name="title">Doc three</field>
    <field name="payloads">testone|5 testtwo|100 testthree|300</field>
    <field name="text">I testone, you testtwo, they testthree</field>
  </doc>
</add>

Then in the Admin UI i queryed:
http://localhost:8983/solr/collection1/select?q=text%3Atestone&wt=json&indent=true

The result was:
{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "indent":"true",
      "q":"text:testone",
      "wt":"json"}},
  "response":{"numFound":3,"start":0,"docs":[
      {
        "id":"2",
        "title":["Doc two"],
        "payloads":"testone|30 testtwo|200 testthree|5",
        "_version_":1457102453306556416},
      {
        "id":"3",
        "title":["Doc three"],
        "payloads":"testone|5 testtwo|100 testthree|300",
        "_version_":1457102453657829376},
      {
        "id":"1",
        "title":["Doc one"],
        "payloads":"testone|100 testtwo|30 testthree|5",
        "_version_":1457102486106013696}]
  }}

So, doc two has the biggest score although i gave doc one the biggest
payload for term "testone".
I am missing something here or is there a bug?

Thanks!



-----
Thanks,
Michael
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Simple-payloads-example-not-working-tp4110998.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to