No parser for element

Hi,

I just started to use elasticsearch and i am encountering a problem.

When I am executing this query:

  1. {
  2. fields: ["variants", "title", "shortdesc", "image", "hersteller",
    "MinPreis"],
  3. from: 0,
  4. "query": {
  5.    "fuzzy_like_this": {
    
  6.        "fields": ["_all"],
    
  7.        "like_text": "royal",
    
  8.        "max_query_terms": 12
    
  9.    },
    
  10.    "term": {
    
  11.        "hersteller":"Royal Canin"
    
  12.    }
    
  13. },
  14. "facets": {
  15.    "tierart": {
    
  16.        "terms": {
    
  17.            "field": "tierart"
    
  18.        }
    
  19.    },
    
  20.    "ohne": {
    
  21.        "terms": {
    
  22.            "field": "ohne"
    
  23.        }
    
  24.    },
    
  25.    "hersteller": {
    
  26.        "terms": {
    
  27.            "field": "hersteller.raw"
    
  28.        }
    
  29.    }
    
  30. },
  31. "sort": [
  32.    "_score"
    
  33. ]
  34. }

I get a "no parser for element 'hersteller'" error. When i remove

  1. "term": {
  2.       "hersteller":"Royal Canin"
    
  3.   }
    

everything works fine.

I appreciate any help,
Regards

Torben

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hard to answer without knowing your documents and your mapping.
See how to gist curl recreation on help page: http://www.elasticsearch.org/help/

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

8 novembre 2013 at 19:02:52, Torben Hartmann (torben.hartmann@googlemail.com) a écrit:

Hi,

I just started to use elasticsearch and i am encountering a problem.

When I am executing this query:

{
fields: ["variants", "title", "shortdesc", "image", "hersteller", "MinPreis"],
from: 0,
"query": {
"fuzzy_like_this": {
"fields": ["_all"],
"like_text": "royal",
"max_query_terms": 12
},
"term": {
"hersteller":"Royal Canin"
}
},
"facets": {
"tierart": {
"terms": {
"field": "tierart"
}
},
"ohne": {
"terms": {
"field": "ohne"
}
},
"hersteller": {
"terms": {
"field": "hersteller.raw"
}
}
},
"sort": [
"_score"
]
}

I get a "no parser for element 'hersteller'" error. When i remove
"term": {
"hersteller":"Royal Canin"
}
everything works fine.

I appreciate any help,
Regards

Torben

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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.