I'm trying to use fuzzy search, but i'm getting an error:
{"error":{"root_cause":[{"type":"query_parsing_exception","reason":"No query registered for [fuzzy_like_this]","index":"default","line":1,"col":67}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"default","node":"hcsfsArwQ9OwOkw0Wrt5TQ","reason":{"type":"query_parsing_exception","reason":"No query registered for [fuzzy_like_this]","index":"default","line":1,"col":67}}]},"status":400}" on line 239 of /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php
Hi,
I'm trying to use fuzzy search, but i'm getting an error:
{"error":{"root_cause":[{"type":"query_parsing_exception","reason":"No query registered for [fuzzy_like_this]","index":"default","line":1,"col":67}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"default","node":"hcsfsArwQ9OwOkw0Wrt5TQ","reason":{"type":"query_parsing_exception","reason":"No query registered for [fuzzy_like_this]","index":"default","line":1,"col":67}}]},"status":400}" on line 239 of /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php
I used this code:
$results = ESearch::search(array('question','keywords'), $question,array('phrase'=>true,'fuzzy'=>1)) ->where('status', 'published') ->get();
When removing fuzzy, the search query is giving me results. I'm using Elasticsearch 1.0.