• Resolved atelier64

    (@atelier64)


    When I use a searchfield on my website, Algolia finds 5 results for “blue cars”.
    When I press enter I only got 2 results on the search page.
    (I activated this setting: Use Algolia with Instantsearch.js.)

    So autocomplete and instantsearch works different?

    Blue cars is entered in the content of the 2 pages. While on the 3 other pages, blue cars are only entered in an advanced custom field.

    “Instantsearch.php” searches for custom fields and “autocomplete.php” not?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @atelier64

    I know that they receive difference indices in your Algolia Dashboard, so one way to troubleshoot/confirm things would be to log in there and check those. For example if you left your index prefix at wp_, the instantsearch would go in wp_searchable_posts while autocomplete based ones would go in say wp_posts_post or wp_posts_page etc. Much like you may have noticed a solitary re-index button on the “search page” settings page while the autocomplete have re-index buttons for each content type. Also may not hurt to just run a re-index for the content type storing your cars, on both settings pages.

    If the records there are matching up pretty well, and you’re still experiencing discrepancies, let us know and we can see about troubleshooting further.

    Thread Starter atelier64

    (@atelier64)

    Hi,
    When I log in on Agolia I see that the index names are: wp_post_page (409 records), wp_post_cars (138 records), wp_searchable_post (744 records),…
    So is there something wrong with this? I didn’t fully understand what you meant.

    I didn’t noticed the Re-index button for the Search page. Now I Re-indexed the Search page and all autocomplete posts.
    But the results are the same.

    Thanks for following this up.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    For the sake of trying to troubleshoot the correct parts, which portion are you more concerned about?

    What I mean by that is does the autocomplete total feel lower than it should? Do you have more than 138 records for this cars post type?

    Or is the searchable posts feeling inflated?

    An example of the last part has an explanation at https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Frequently-Asked-Questions#i-have-more-records-than-i-have-posts-is-that-normal where it may feel inflated.

    Thread Starter atelier64

    (@atelier64)

    We want to have the same results on instant search and on the autocomplete.
    Because now we have 6 results when searching in search field on homepage, and when pressing enter, we only have 1 result on the search page. It feels like some results are missing.

    I tested further and now I understand what you meant with “the instantsearch would go in wp_searchable_posts while autocomplete based ones would go in say wp_posts_post or wp_posts_page”.

    What I said first about Algolia that also searches in the custom fields is not true.

    We also using synonyms in Agolia. Here we made a mistake.
    We didn’t used the wp_searchable_posts synonyms. Only the one for cars or other post types that also were selected in the autocomplete settings in the plugin.
    That is the reason why the results are different.

    Our solution is to also enter the synonyms in searchable posts.

    Is there no other way to keep the results the same?
    Can we change that the search page results using the different post types indexing instead of wp_searchable_posts? Or what is the reason this is different?

    Any other suggestions?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No other way that I’m aware of, and I don’t know offhand if it’s possible to change sources of indexes for the two different tech types, being autocomplete and instantsearch. I also don’t know the reason for the different indexes.

    Thread Starter atelier64

    (@atelier64)

    I’m working on that. Thanks for sharing your knowledge.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Different results on autocomplete vs instantsearch’ is closed to new replies.