Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

IsArray does not seem to work #126

Open
dutchiexl opened this issue Mar 24, 2017 · 0 comments
Open

IsArray does not seem to work #126

dutchiexl opened this issue Mar 24, 2017 · 0 comments

Comments

@dutchiexl
Copy link

dutchiexl commented Mar 24, 2017

I added some properties to my config, I tagged them as an array. But they are indexed as a full string not an array. Can you please help out ?

curl -XPUT 'localhost:9200/.river_web/config/website' -d '{
    "index" : "chatbot",
    "type" : "website",
    "urls" : ["https://www.website.be/"],
    "include_urls" : ["https://www.website.be/.*"],
    "max_depth" : 3,
    "max_access_count" : 100,
    "num_of_thread" : 5,
    "interval" : 1000,
    "target" : [
      {
        "pattern" : {
          "url" : "https://www.website.be/.*",
          "mimeType" : "text/html"
        },
        "properties" : {
          "persons" : {
            "text" : ".teamCarousel .testClass",
            "isArray" : true
          },
           "menus" : {
            "text" : ".secondaryMenu ul li a",
            "isArray" : true
          }
        }
      }
    ]
}'

Result

"hits": {
      "total": 1,
      "max_score": 0.038356602,
      "hits": [
         {
            "_index": "chatbot",
            "_type": "website",
            "_id": "AVsAQmPFcjpULpd6LiSC",
            "_score": 0.038356602,
            "_source": {
               "method": "GET",
               "httpStatusCode": 200,
               "charSet": "UTF-8",
               "executionTime": 490,
               "url": "https://www.website.be/",
               "contentLength": 26392,
               "mimeType": "text/html",
               "persons": "Account Manager Flying is learning how to throw yourself at the ground and miss.",
               "menus": "OVER ONS CO-CREATIE JOBS OPLOSSINGEN CONTACT",
               "@timestamp": "2017-03-24T12:20:02.595Z"
            }
         }
      ]
   }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant