• Resolved rzharding

    (@rzharding)


    If I enter multiple search terms (for example, rheumatoid arthritis), Better Search searches posts that have “rheumatoid” or “arthritis”.

    How do I limit searches so that both terms need to be present?

    I suspect that I could use Better Search must more effectively if I understand how to use AND, OR, NOT in my searches.

    Can you give me some clues how to do this?

    Richard

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ajay

    (@ajay)

    Better Search uses a natural language search algorithm of mySQL’s full text feature. This means it prioritises posts with both terms and so on automatically.

    I just tried searching your site and noticed that the first several posts are with both terms appear in the title or content.

    Is there something I’m missing there?

    Thread Starter rzharding

    (@rzharding)

    Greeting Ajay

    If I type “bovine”, I get 5 pages returned. If I enter “leukemia”, get 2 pages. Entering “bovine leukemia”, I receive 6 pages.

    If I type “caution”, I receive 3 pages. “amsterdam” returns 8 pages and “amsterdam caution” returns 10 pages.

    I want to know how I get the pages that have both search terms “bovine leukemia” or “amsterdam caution” NOT either of the search terms.

    Note: All the search items are entered without quotes.

    Is there a way of using some form of boolean operators such as AND, OR, NOT (or +, -, ~) to refine searches?

    It would be really good if the number of posts/pages that are returned is displayed. I am guessing that it is the theme that displays that information. Is that true?

    Richard

    Plugin Author Ajay

    (@ajay)

    In the settings page you can activate BOOLEAN search mode.

    Please see here for more: https://dev.mysql.com/doc/refman/8.0/en/fulltext-boolean.html

    Thread Starter rzharding

    (@rzharding)

    Thank you – that is very helpful.

    Richard

    Plugin Author Ajay

    (@ajay)

    You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using Multiple Search Terms’ is closed to new replies.