Hi,
I'm using dynamic mapping for indexing. Above you can see PHP
structure of data.
array("mailing_index" =>
array("properties" =>
array(
"f_id" =>
array("type" => "long"),
"f_from" =>
array("type" => "string",
"index" => "analyzed", "analyzer" => "default"),
"f_subject" =>
array("type" => "string",
"index" => "not_analyzed"),
"f_body" =>
array("type" => "string",
"index" => "analyzed", "analyzer" => "default"),
"f_reply_to" =>
array("type" => "string",
"index" => "no"),
"f_type" =>
array("type" => "string",
"index" => "not_analyzed"),
"f_status" =>
array("type" => "integer",
"index" => "no"),
"f_datetime" =>
array("type" => "long",
"index" => "not_analyzed"),
"f_userid" =>
array("type" => "long",
"index" => "not_analyzed"),
)
)
)
As you can see "f_reply_to" field marked as "index" => "no". But I am
able to perform search by this field. In documentation of elastic
search we can find a line " "index:no" means that it won’t be
searchable at all". Used the 0.17.6 version of elasticsearch. Same
behavior for 0.17.0.
Maybe I'm doing something wrong, please help me to understand the
situation.
//////////////////////// config file
content //////////////////////////////////
node :
data : true
gateway :
type : fs
index :
analysis :
analyzer :
default :
type : custom
tokenizer : standard
filter : [standard, lowercase, porterStem, stop]
network.publish_host: 127.0.0.1
network.bind_host: 127.0.0.1
network.host: 127.0.0.1
node.data: true # Default
http.port: 9200 # Default
cluster.name: "TestCluster"
//////////////////////// end of config file
content ////////////////////////////////
Thanks in advance
H. Avetsyan