lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Lin Edwin Yeo <edwinye...@gmail.com>
Subject Questions on The Tagger Handler
Date Wed, 01 Aug 2018 09:59:42 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message