GAE full text search, 3 test data entries in the index:
name(1):test1
name(2):test1 test2
name(3):test1 test2 test3
query1: name:test1
result1: name(1), name(2), name(3)
query2: name:test1 test2
result2: name(2), name(3)
query3: name:test1 test2 test3
result3: name(3)
I would like to get back from all the 3 queries all the 3 entries (and sort them by relevancy). I’ve checked all the search.QueryOptions settings, but I couldn’t reach the expected result.
At the moment I see constructing a query expression myself from the input as an only option (solution1: name: test1 OR test2 OR test3; solution2: name: test1 OR (test1 test2) OR (test2 test3) OR (test1 test3) OR (test1 test2 test3)) but it’s simply hard to believe that it would be the proposed way to do it.
Python 2.5, tested with SDK and production as well.
The API does not return those other results because they do not match the query. The default operation is an ‘and’ not an ‘or’ – as it should be for any sane search facility. Using or as a default in real world situations will return a great number of irrelevant results: when I search for ‘app engine’, I do not want to know about apps, or about engines.