Search Query String

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

Viewing 3 reply threads
  • Author
    Posts
    • #4484


      MountainDew
      Participant
      Post count: 13

      I would like to double-check the Search Query String. The Top New to Post  section only allows for keywords but no phrases, is that correct? How are the keywords separated? With spaces or no spaces:

      Acne,Pimple,Zits  OR  Acne, Pimple, Zits

      Do I need to put quotations marks around them?

      How does the search query function works? Does it find a match for at least one of the keywords requested for it to retrieve it, or does the article have to contain all the keywords listed?  Is there a max limit to the number of keywords that I can insert into the query?

      There’s no boolean search option, is that correct? Such as using If, Or, And between keywords.

      ————————————————————————————————————-

      Regarding phrases, this is only allowed in the Custom News to Post section, is that correct?

      Does the phrase need to be in quotation marks”?  for example, “Treatment for Acne”

      Thank you…

       

    • #4485


      Szabi – CodeRevolution
      Keymaster
      Post count: 4205

      Hello,

      Yes, the Top New to Post  section only allows for keywords but no phrases, correct.

      Keywords can be separated either by commas or spaces, both work. No punctuation marks are required.

      The search query works by requiring at least one keyword to be matched, not all are required.

      If you need to match phrases which are required to be in the text, you need to use quotes, example: “fuel prices”

      The search is also a negative search feature:

      Prepending a term with a hyphen will exclude posts matching that term. Eg, ‘pillow -sofa’ will return posts containing ‘pillow’ but not ‘sofa’.

      Please check more details in this tutorial video: https://www.youtube.com/watch?v=4kLRQi-GqWQ

      I hope this info helps.

      Regards, Szabi – CodeRevolution.

    • #4490


      MountainDew
      Participant
      Post count: 13

      Hi, thank you for your excellent support.

      You said “The search query works by requiring at least one keyword to be matched, not all are required.”

      So at the moment, there is no way to set the query to return articles with 2 (or more) keywords, meaning the articles must have 2 (or more) keywords requested otherwise don’t return it.

      Example:  Treatment, Pimples

      I would like articles that has to include both these keywords in the articles, not one or the other.

    • #4491


      Szabi – CodeRevolution
      Keymaster
      Post count: 4205

      Sorry but I forgot to mention this, to require a keyword, you can use as follows:

      Treatment +Pimples

Viewing 3 reply threads

The topic ‘Search Query String’ is closed to new replies.