I have tried the above code with no luck. We have a custom post type that is being indexed and when testing in the Admin Search Test Area I have a post with the Title “210” but it puts that post mid way through the results and other posts with titles like “417N3310-210” when I search “210”. I have tried adjusting the keyword matching and adding the mentioned code above but can’t get it to work. Thoughts?
Any update on this? This would be really nice to not through a php error. We have a list of product ID’s we are running this against in another table to display nutritional facts per product. For products with no nutritional information, we do not have an ID in our table. It would be nice if the table just returned no rows instead of an error. Thanks!