Hi all,
I am learning the basics of Solr querying and am not able to figure out
something. The first query which searches for 'apac' fetches no documents.
The second one which searches for 'apach' , i.e. add h - one more
character, fetches a document.

curl -X GET "
http://localhost:8983/solr/search_twitter/select?q=apac&df=catch_all&fl=catch_all,score
"
{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "q":"apac",
      "df":"catch_all",
      "fl":"catch_all,score"}},

"response":{"numFound":0,"start":0,"maxScore":0.0,"numFoundExact":true,"docs":[]
  }}


curl -X GET "
http://localhost:8983/solr/search_twitter/select?q=apach&df=catch_all&fl=catch_all,score
"
{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "q":"apach",
      "df":"catch_all",
      "fl":"catch_all,score"}},

"response":{"numFound":1,"start":0,"maxScore":0.13076457,"numFoundExact":true,"docs":[
      {
        "catch_all":["apache",
          "Happy searching!",
          "https://lucene.apache.org/solr";,
          "https://lucene.apache.org";],
        "score":0.13076457}]
  }}

Field definition -
"name":"catch_all",
"type":"text_en",
"multiValued":true


Neither apac or apach is there in the data.

Regards,
Jayadevan

Reply via email to