Still waiting for a response from ES team,
On Sunday, June 22, 2014 6:35:33 PM UTC+5:30, satishmallik wrote:
>
> I have following ES mapping defined,
>
> curl "localhost:9200/codeindexroute/filecontracts/_mapping"
>
> {
> "codeindexroute":{
> "mappings":{
> "filecontracts":{
> "_routing":{
> "required":true
> },
> "_source":{
> "compress":false,
> "includes":["filePath","parserType"],
> "excludes":["content"]
> },
> "properties":{
> "content":{
> "type":"string",
> "term_vector":"with_positions_offsets"
> },
> "contentID":{
> "type":"string",
> "index":"not_analyzed"
> },
> "filePath":{
> "type":"string",
> "index":"no",
> "store":true
> },
> "parserType":{
> "type":"string",
> "index":"not_analyzed"
> }
> }
> }
> }
> }
> }
>
> I index the doc with routing ID "abc",
>
> curl "localhost:9200/codeindexroute/filecontracts/?routing=abc" -d
> @data-file.json
>
>
> {"_index":"codeindexroute","_type":"filecontracts","_id":"6AOXcDl4TLWgyUnXlDUcww
> ","_version":1,"created":true}
>
>
> data-file.json looks as follows
>
> {
> "content":"I am Happy",
> "contentid": "abcdedf",
> "filepath" : "\\test1\test1.txt",
> "parsertype" : "txt"
> }
>
> When I look at all contents
>
> curl "localhost:9200/codeindexroute/filecontracts/_search?pretty"
>
> {
> "took" : 53,
> "timed_out" : false,
> "_shards" : {
> "total" : 1,
> "successful" : 1,
> "failed" : 0
> },
> "hits" : {
> "total" : 1,
> "max_score" : 1.0,
> "hits" : [ {
> "_index" : "codeindexroute",
> "_type" : "filecontracts",
> "_id" : "6AOXcDl4TLWgyUnXlDUcww",
> "_score" : 1.0,
> "_source":{}
> } ]
> }
> }
>
>
> curl "localhost:9200/codeindexroute/filecontracts/_search?routing=bbb"
>
>
> {"took":63,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hi
>
> ts":{"total":1,"max_score":1.0,"hits":[{"_index":"codeindexroute","_type":"filec
> ontracts","_id":"6AOXcDl4TLWgyUnXlDUcww","_score":1.0,"_source":{}}]}}
>
>
> When I am searching with routing "bbb", Ideally it should not return any
> document as I have not indexed any document with this routing ID. I have
> just indexed one document with routing id "abc".
>
> Am I making some mistake here or, is there any issue with ES? Please have
> a look,
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/2b1a7219-a651-4802-a873-cc43ca191f4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.