I did a test with a new post where the HTML content did not contain the keyword I was searching for. Instead it was included in the keywords area (comma separated) along with other values. When I did a search for the keyword, the FAQ was not found. Then, I copied the keywords into a <div "hidden"></div> area in the HTML, and the FAQ was found.
I assume there must be a configuration error somewhere, unless Elastic Search ignores the keywords. Any ideas`?
Here is output from my Elastic Search server.
Code: Select all
root@faq:~# curl "localhost:9200/"                                              {
  "name" : "prod-faq-1",
  "cluster_name" : "faq",
  "cluster_uuid" : "g8EabpdxShy_YRD-kBb6zw",
  "version" : {
    "number" : "2.4.6",
    "build_hash" : "5376dca9f70f3abef96a77f4bb22720ace8240fd",
    "build_timestamp" : "2017-07-18T12:17:44Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.4"
  },
  "tagline" : "You Know, for Search"
}Code: Select all
<?php
$PMF_ES['hosts'] = ['127.0.0.1:9200'];
$PMF_ES['index'] = 'phpmyfaq';
$PMF_ES['type'] = 'faqs';
?>