Hi,
Seems to work for me. What kind of client are you using to issue the search query? I copied your mapping and indexing code to a little script using curl to send the requests, and first I didn't see an empty result set as well. Make sure to wait a tiny bit (~1 sec) after indexing before the document is searchable. This is determined by the index.refresh_interval settings you can read more about here. In this case I get the document back like expected.
Thank you Christoph,
actually with a shell script and single record.. it works!
I've used node.js elasticsearch client to build the create index and to push records with the bulk api.
Maybe the bulk api is the source of my issue? Or an indexing issue?
I'm going to try to insert the records one by one just to see if it works
UPDATE: I've used the bulk api in node.js so that requests are not spawned in parallel. Now I can query point types but I'm unable to search in polylines. A step forward
UPDATE2: Ok, after inserting records one by one, I can query the data as expected. Need to check if my usage of node.js bulk implementation is faulty.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.