Hi everyone,

I have an index where two of the data fields is long type, and the other 
string type. They are PID and Batch_Name. I'm trying to do a query that 
returns me the entry with PID = 25747 and batch name = ZEJINNSP05.That's 
how I'm doing the query: 

http://myserver.com:9200/batches-*/_search?q=PID:25747&Batch_Name:ZEJININSP05&pretty=true

The result of this query are two entries. One of both is correct. It have 
this PID and this batch name. the other one has the correct PID but the 
following batch name: ZEJINLECT32

I guess that happens because ES is tokenizing my field. But I don't 
understand why, since I'm telling in my template that this field should not 
be tokenized. 

This is how looks my template:

#!/bin/sh
curl -XPUT 'localhost:9200/_template/batches_online' -d '{
    "template": "batches-*",
    "settings": {
        "number_of_shards": 1,
        "number_of_replicas": 0,
        "index.refresh_interval": "5s"
    },

    "mappings": {
        "logs": {
            "properties": {
"Batch_name": {
"type": "string",
                                        "index":"not_analyzed"
}
                                ... (more fields)

What I'm doing wrong? 

-- 
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/077f7d0a-67b6-42fc-a056-f64d37ede808%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to