I have a search box that is just searching every possible core, and every
possible field.

When I enter 'owl-2924-8', I expect the clt_ref_no of OWL-2924-8 to float
to the top, however it is the third result in my list.

Here is the code from the search:

on_data({
  "responseHeader":{
    "status":0,
    "QTime":31,
    "params":{
      "hl":"true",
      "indent":"on",
      "fl":"debt_id, clt_ref_no",
      "start":"0",
      "sort":"score desc, id asc",
      "rows":"500",
      "version":"2.2",
      "q":"clt_ref_no:owl\\-2924\\-8 debt_descr:owl\\-2924\\-8
comments:owl\\-2924\\-8 reference_no:owl\\-2924\\-8 ",
      "core":"debt",
      "json.wrf":"on_data",
      "urlquery":"owl-2924-8",
      "callback":"?",
      "wt":"json"}},
  "response":{"numFound":85675,"start":0,"docs":[
      {
        "clt_ref_no":"2924",
        "debt_id":"574574"},
      {
        "clt_ref_no":"2924",
        "debt_id":"598663"},
      {
        "clt_ref_no":"OWL-2924-8",
        "debt_id":"624401"},
      {
        "clt_ref_no":"OWL-2924-8",
        "debt_id":"628157"},
      {
        "clt_ref_no":"2924",
        "debt_id":"584807"},
      {
        "clt_ref_no":"U615-2924-8",
        "debt_id":"628310"},
      {
        "clt_ref_no":"OWL-2924-8/73847",
        "debt_id":"596713"},
      {
        "clt_ref_no":"OWL-2924-8/73847",
        "debt_id":"624401"},
      {
        "clt_ref_no":"OWL-2924-8/73847",
        "debt_id":"628157"},
      {

I'm not interested in having a specific search with quotes around it,
because this is searching everything, so it's a fuzzy search. But I am
interested in understanding why 'owl-2924-8' doesn't come out on top of the
search.

As you can see, I'm sorting by score and then id, which should take care of
things, but it's not.

Thanks,

Rhys

Reply via email to