How to perform a wildcard in phrase search


(Joyce Wu) #1

Hi,

I have a document contains a phrase "interest entities". If I use wildcard
query to search "entit*", that document is returned. However, if I use
wildcard query to do a phrase search "interestentit", that document is
not found. I also tried with prefix query as well as wildcard query with
"interest entit*", no document is found either.

I would expect follow query to work according to ElasticSearch document:
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_literal_wildcard_literal_and_literal_regexp_literal_queries.html

{"wildcard":{"document":"interestentit"}}

The document was indexed using standard tokenizer and standard filter,
which should be not stemmed.

Does anyone has an idea how to get the wildcard query works with wildcard
in a phrase?

Many thanks!

Joyce

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b75810bb-9e10-4dfd-aa2a-bfad63d78c27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2