Support » Plugin: Fantastic ElasticSearch » elasticsearch\Searcher()

  • Resolved don1967

    (@don1967)


    I am building a php controller to run behind the JS API in wordpress that i simply want to return search results from the $_GET search parameters

    1) When i am using elasticsearch\Searcher() must i not define somehow the index that is being used.?

    2) When i run

    $results = $searcher->search(“Test title”, 0 , $size = 10, $facets = array(), $sortByDate = false);

    The results are always the same? Even if i change “Test title” to something else.

    Any help would be really appreciated.

    Steve

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter don1967

    (@don1967)

    ok i have figured that the index is set in the option of WP so this issue is sorted

    !Hey there!
    You could use the search atudarme the pluggin . I could not searchable . Thank you!

    Thread Starter don1967

    (@don1967)

    HI

    Well i have moved forward at least.

    I have my controller working and searching using Searcher::search

    HOWEVER

    I am only able to return the IDs the the the results.

    Any idea how i progress to get the indexed information?

    Steve

    Helpme with the pluggin

    I have worked with elasticsearch the easiest way that I can think of it is to get it through curl pointing to the indexer

    Thread Starter don1967

    (@don1967)

    Thats the way im thinking i have to go.

    I only really went to the WP elastic API searcher as the documentation implied you could search through it.

    Thanks for your input though. it kinda clarifies what i was starting to think

    Thanks

    Steve

    Plugin Author Paris Holley

    (@parisholley)

    The intended behavior is to just return ids, then you have to pull the list of posts out of wordpress through another query.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘elasticsearch\Searcher()’ is closed to new replies.