• I’ve installed ElasticSearch on my development server and it’s working fine. I’ve got a WordPress installation on the same machine; Fantastic ElasticSearch plugin seems to be correctly activated and writes data to ElasticSearch server, but when I try running a search from WordPress I get no results.

    I’m using WordPress 4.1.1 with standard Twenty Fifteen theme.

    Any idea why this is not working? What can I use to make some debug?

    https://www.ads-software.com/plugins/fantastic-elasticsearch/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter stebcom

    (@stebcom)

    I noticed the plugin uses ruflin/Elastica php client, so I downloaded the latest version of that library, then searches started giving results (I’m using version 1.5.1 of ElasticSearch server, so I think server and php client versions simply didn’t match).

    Not everything is ok though, because fuzzy searching is not working at all. Have you got any suggestion?

    Thread Starter stebcom

    (@stebcom)

    Ok, I found that fuzzy search is triggered by appending “~” to the query string, hence the fuzziness amount parameters needs to be set at minimum value of 2.
    This is not a good approach because no common user will append ~ to his query string without anyone telling him to. I edited the code, adding ~ to every query string, so that fuzzy search is always triggered.
    I’ve just started exploring ElasticSearch and I don’t know it well, so this is probably not the best way to arrange things, but at least it’s working.

    Hi stebcom,
    thank you for your help!

    Do I have to do something else after Elastica installation? I think I have to write somewhere the installation folder, but I cannot find the right place.

    Thank you again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search won't display any results’ is closed to new replies.