I'm trying to index football related data and query them. I want to query
for exact match, because some fields contains lots of names and quering for
string like 'Frank Lampard' won't be very accurate. So I want use
query_string and do exact match of '"Frank Lampard"' and there I run into
troubles.
With just few documents in my type (like 50 maximum), everything runs
smoothly. But when I index few more documents, Elasticsearch gives me
following Exception:
query[filtered(+ConstantScore(:) +(goals:"frank
lampard"))->cache(_type:match)],from[0],size[10]: Query Failed [Failed to
execute main query]]; nested: IllegalStateException[field "goals" was
indexed without position data; cannot run PhraseQuery (term=frank)]; }]
My mapping in this case is very simple, just custom analyzer with truncate,
webalize, lowercase and asciifolding. I tried almost every combination of
index_options and term_vector, but nothing seems to work.
I run following version of Elasticsearch on my MacbookPro:
{
"ok" : true,
"status" : 200,
"name" : "Omega I",
"version" : {
"number" : "0.90.3",
"build_hash" : "5c38d6076448b899d758f29443329571e2522410",
"build_timestamp" : "2013-08-06T13:18:31Z",
"build_snapshot" : false,
"lucene_version" : "4.4"
},
"tagline" : "You Know, for Search"
}
Any suggestions?
Thanks,
Ales Kafka
--
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.