Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › search on title and tag
This topic contains 4 replies, has 2 voices, and was last updated by romain 7 years, 1 month ago.
- AuthorPosts
- October 13, 2016 at 2:04 pm #10462
Hello
I try to understand some concept.
I’ve got some posts with title, text and tag.
Exemple :
title: dog / text : it’s a beautiful animal / tag : whiteIf I perform a search with title and text parts, it’s ok : I search “dog beautiful”, it’s working.
But if I perform a search with title and tag, it doesn’t find it : I search “dog white”, it’s not working.
And I don’t want to activate “Return post tags as results”.
Is all this normal ?
Thanx !October 13, 2016 at 4:31 pm #10463Hi!
You are looking for the option “Search in terms” on the General Options -> Sources panel: https://i.imgur.com/zj9HRu3.png
It’s disabled by default, because for bigger databases (over 100 000 posts) may cause a slowdown.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 14, 2016 at 9:24 am #10469Thank you.
But this option is already activated.In my exemple, when I search for a tag alone like “white”, it find my post.
But if I search the expression “white dog” (tag + title), it doesn’t find the post…
Or “white beautiful” (tag + content extract), it doesn’t find the post too.Any idea ?
October 14, 2016 at 9:36 am #10470I guess you have the keyword logic set to “AND” and using the “Regular engine”.
If so, you have two ways of solving this:
1. Setting the keyword logic to “OR” – because with the regular engine the logic applies per field base: https://i.imgur.com/NC5yRmn.png
Therefore the term “white beautiful” with the “AND” logic would have to match one of the fields for both words at the same time.2. Using the same keyword logic, but using the index table engine. The index table stores the extracted keywords with occurence data, and is able to connect them regardless of their source location – solving the problem facing the regular engine.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 14, 2016 at 10:11 am #10471ok, thanks for that, I understand the concept now 😉
CLOSED - AuthorPosts
The topic ‘search on title and tag’ is closed to new replies.