Support » Plugin: Fantastic ElasticSearch » No results when post content given a weighting

  • I’m still pretty green at using elasticsearch but i’ve had experience implementing my own index from scratch for a different project. I’m evaluating this plugin for use on a large site and I have it installed and configured and the entire site has been indexed however I’m having difficult getting it to work they way I expect.

    Once the indexing process was finished I performed a wp search using a simple term that I knew existed in several hundred posts and was surprised that I got no results back. Now I made sure to apply a weighting to the post title and post content fields. I did get results by appending the ~ to force the fuzzy analyzer to kick in however end users will not do that. I also noticed that I got results if i set post content weighting to zero.

    So I have a feeling this is more my misunderstanding of how elasticsearch works in which case maybe someone here can explain to me why I cannot apply any weightings to post content and expect results. Experimentally I went into the plugin code and removed the hard coded usage of the english analyzer and I got results that way even with a non-zero post content weighting. I would appreciate any insight on this.

    https://wordpress.org/plugins/fantastic-elasticsearch/

Viewing 1 replies (of 1 total)
  • Plugin Author Paris Holley

    (@parisholley)

    Not sure why that wouldn’t work (unless the content wasn’t in english of course). Are you hosting your own ES service or using hosted version?

Viewing 1 replies (of 1 total)
  • The topic ‘No results when post content given a weighting’ is closed to new replies.