Re: Filter by specific value without mapping

2014-10-17 Thread Vladimir Krylov
Tried to remove papping and make not_analizable curl -XPUT http://$HOST:9200/reports; -d' { mappings: { _default_: { dynamic_templates: [ { store_generic : { match : *, match_mapping_type : string,

Filter by specific value without mapping

2014-10-07 Thread Vladimir Krylov
What I'm trying to do is to get data by filtering term with exact matching. I have ES 1.3.2 and I cannot do mapping, as attributes are dynamic (different users has different attributes). My data: { id: 111, org_id: 11, approval: approved, ... } { id: 112, org_id: 11, approval: not

Re: Filter by specific value without mapping

2014-10-07 Thread Vladimir Krylov
Just to be clear, actually I don't need any analyzer on filters On Tuesday, October 7, 2014 12:57:32 PM UTC+3, Vladimir Krylov wrote: What I'm trying to do is to get data by filtering term with exact matching. I have ES 1.3.2 and I cannot do mapping, as attributes are dynamic (different

Re: Filter by specific value without mapping

2014-10-07 Thread Ivan Brusic
The field do not need a custom analyzer, they just need to be simply marked as non_analyzed. You can setup a dynamic template that states any new field should be non analyzed. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#_dynamic_templates