Hi,

I am trying out the Tagger Handler in Solr 7.4.0 by following the tutorial
from
https://lucene.apache.org/solr/guide/7_4/the-tagger-handler.html#tutorial-with-geonames

I have managed to set it up to work, but what I do not really understand is
how to analyse the output. From the example, it seems to be trying to tag
'Hello New York City', and it returns one output. This seems more like
searching for the 'name' field (in the example, the 'name' field is copied
to the 'name_tag' field for tagging) and getting the records with the name
"New York City".

What is the actual purpose of doing this?

Also, what does the "startOffset" and "endOffset" means, and how the value
is calculated?

{
  "responseHeader":{
    "status":0,
    "QTime":1},
  "tagsCount":1,
  "tags":[[
      "startOffset",6,
      "endOffset",19,
      "ids",["5128581"]]],
  "response":{"numFound":1,"start":0,"docs":[
      {
        "id":"5128581",
        "name":["New York City"],
        "countrycode":["US"]}]
  }}


Regards,
Edwin

Reply via email to