• Resolved juanbro

    (@juanbro)


    Searching for multiple terms returns no results.

    Example: assuming a post has two tags – foo and bar; a search for both tags returns no results (e.g. site.com/?s=foo+bar).

    A search for either tag alone returns correct results.

    Terms Relation Type is set to AND.

    Note – Terms Relation Type set to OR works as expected.

    Theme: Twenty Fourteen and Twenty Fifteen

    What am I missing?

    Thanks!

    https://www.ads-software.com/plugins/wp-extended-search/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter juanbro

    (@juanbro)

    This seems to be an issue with tags

    Posts with foo and bar in the title/content seem to work as expected.

    Post with ‘foo’ in title/content and with tag ‘bar’ seem to work as expected.

    Post with tags ‘foo’ and ‘bar’, but no foo/bar in title/content do not work.

    It appears WP Extended Search won’t find more than one tag.

    Am I missing something?

    Thanks!

    Plugin Author Sumit Singh

    (@5um17)

    Hi juanbro,

    Yes you are right.
    Each tag stored in separate row in database. When WPES makes a join same post ids with each tags found in different rows. So it can not work with AND connection because query look for both tags in same row which can not be found. Therefore, No post found!

    It can work if you choose the connection OR but it will create problem with title and content. If any word get matched in title or content it will display those all posts.

    Hope you understand.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘multiple term search returns no results’ is closed to new replies.