Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Post Types Not Showing in Results and/or inconsistent search results #46

Open
gwhitehead opened this issue Apr 2, 2024 · 0 comments
Assignees

Comments

@gwhitehead
Copy link

I have run into a strange issue where the site I am working with has multiple post types. Products, Product Categories, News, regular posts and pages as well. When I am searching for a specific Product there are times that it doesn't show up even with using the exact name of the product.

At first I was attempting to search for the first four letters of a products title, nothing showed up. Did a few wp ElasticPress sync even with --setup with no luck of getting it to show. Did a --post-type="product" and was finally able to get this to show up in the results.

Did another search for a product name with a character and then 4 numbers after it and even though the products had a high weight and almost matching search term the products showed up at the bottom of the search results and the auto-suggest. Even with trying to setup a custom search results for this term and moving the products to the top, the first custom selection isn't showing and it is showing a different page at the top. If we remove the first character and do a search of just the 4 numbers, then the products show up first in the autosuggest search results.

I have made sure that we are not running any filtering on the searches within WordPress. We do have some customization as to the output on the autosuggest but nothing that should be modifying any of the results themselves.

Just seems like there is inconsistencies with first being able to index all of the items that should be indexed and then the search functionality not showing results that have been setup to have more weight in the system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants