Welcome to the new Box Support website. Check out all the details here on what’s changed.

Help for search query which api search for content using

New post

Comments

5 comments

  • mwiller

     I don't believe the Search API supports boolean queries with && and || like the one you used — if you just search for "Thắm Hồng liễu" or "tham hong lieu" do you get the results you're looking for?

    0
    Comment actions Permalink
  • hieppv1988

    If I search "Thắm hồng Liễu" or "tham hong lieu" => This result more than expected

    Are you document detail for build a query string which api search for content using ?

    because I want search all document contain with ("Hong" and "Lieu") or ("Tham" and "Lieu"). I expect result only 1 file (file2.docx)

    0
    Comment actions Permalink
  • mwiller

     Here is some additional information about how Box Search works — you could try using the correct boolean matching format (with AND/OR).  Does that give you the results you're looking for?

    0
    Comment actions Permalink
  • hieppv1988

    It's not right. I'm looking for a query that combines both "and with or"

    examples: condition1 or condition2 and condition3

    In the example above condition1 false but condition2 and condition3 is true. So I expect result to be true.

    It will return a file beacause It contains: condition2 and condition3

    Do you understand ?

    Help me, Thanks

    0
    Comment actions Permalink
  • mwiller

     Did you try grouping the ORed terms together with parentheses?  I think you should be able to do something like "(termA OR termB) AND termC"; please let me know if that works for you.

    0
    Comment actions Permalink

Please sign in to leave a comment.