How do i create boolean queries in Galago. For example:
Return all documents where the title field contains the term "hello world"
I looked through the documentation, but couldn't find anything specific. I am guessing it is some kind of filter operator? If the documentation exists - happy to look there.
thanks
anton
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
a) only documents with the exact phrase "Six Survivors" in the head field will be retrieved or
b) only documents with both the terms "six" and "survivors" in the head field will appear ?
thanks
Anton
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do i create boolean queries in Galago. For example:
Return all documents where the title field contains the term "hello world"
I looked through the documentation, but couldn't find anything specific. I am guessing it is some kind of filter operator? If the documentation exists - happy to look there.
thanks
anton
I need to add more to documentation!
I use the "#bool" and "#band" (Boolean AND) operations.
For example, with an AP89 index that has only "Six Survivors" in a HEADLINE field, the query is:
A #syn is essentially an OR but I think there is something more "booleanish" available.
Great, many thanks.
so to confirm, for your example, does this mean:
a) only documents with the exact phrase "Six Survivors" in the head field will be retrieved or
b) only documents with both the terms "six" and "survivors" in the head field will appear ?
thanks
Anton
Only documents with the terms six AND survivors in the HEAD field are retrieved.
If you want a phrase, you'd have to add a proximity or window operator for the two terms.