> I have some near query like "analyze term"~2. > That is matched in that order. > But I want to search regardless of order. > So far, I just queried "analyze term"~2 OR "term > analyze"~2. > Is there a better way than what i did?
I think, PhraseQuery should be unordered with slop values grater than 0. (but it is ordered with slope value of 0) The following two queries should return same result set: "analyze term"~2 "term analyze"~2 Isn't that the case for you?