~ (tilde) in queries

Follow

Comments

3 comments

  • Avatar
    Sylvain Bonnefon

    With the query : (medicine AND sore AND throat), the word "throat" could be anywhere in the text (before the word "medicine" for example).
    But with the query ("medicine sore throat"~10), "medicine" will always be the first word, "sore", the second one and "throat" the third word ? Is it true ?

    1
    Comment actions Permalink
  • Avatar
    Yann Guilain

    Hello Sylvain,

    No, in fact the words can appear in any order.  In this example, medicine could be the first, second or third of the three words to appear.

    The tilde acts only to specify how close together you would like to find the words.  It does not specify the word order.

    Hope that helps.

    Cate

    1
    Comment actions Permalink
  • Avatar
    Admin Renault

    Hello,

    What if we want two word to appear in a precise order? Usually, we would use the " "

    For example "Benjamin Franklin" AND death

    How would it work if we wanted to request "Benjamin Franklin" AND death close together?

    ""benjamin franklin" death"~15 ?

    With double quotes?

     

    Thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.