IllegalStateException[field "title" was indexed without position data; cannot run PhraseQuery (term=video)];
Single word searches work fine. Tried "index_options: positions" as well but with no luck. Title field contains text in multiple languages, sometimes empty. Interesting that it seems to fail randomly, for example it would fail with 200K documents or 800K using the same dataset. Is there a reason some titles wouldn't get indexed with positions?
for phrase queries you need "index_options : positions" but you can't
change it after the fact. You need to reindex and likely create a new
mapping / index
simon
On Monday, October 14, 2013 11:03:30 PM UTC+2, eugene.kim wrote:
I have an index in Elasticsearch with the following mapping:
IllegalStateException[field "title" was indexed without position data;
cannot run PhraseQuery (term=video)];
Single word searches work fine. Tried "index_options: positions" as well
but
with no luck. Title field contains text in multiple languages, sometimes
empty. Interesting that it seems to fail randomly, for example it would
fail
with 200K documents or 800K using the same dataset. Is there a reason some
titles wouldn't get indexed with positions?
Thank you for your answer. With each test i delete index and re-create it with the above mappings and then re-index the whole dataset but it still randomly fails. Nothing in the logs too...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.