YousefED / ElasticUI

AngularJS directives for Elasticsearch
http://www.elasticui.com
Other
526 stars 134 forks source link

Space issue in Single Select and Checkbox #97

Open jayraam opened 8 years ago

jayraam commented 8 years ago

I am facing issue with space in both single select and checkbox filter. When even the string has space it is considered as two separate fields. For example, if field value is FIRST NIAGARA, the single select filter and checkbox filter showing as two separate fields.

  1. FIRST
  2. NIAGARA Can you please help me to fix this issue.
mastermind1981 commented 8 years ago

I think the field in ES should be marked as not an indexed one

annelhote commented 6 years ago

That's right, you should set it in you mapping :

{
  "mappings" : {
    "YOUR_INDEX" : {
      "properties" : {
        "YOUR_PROPERTY" : {
          "type" : "string",
          "index" : "not_analyzed"
        }
      }
    }
  }
}