Next: Multiple documents in a file, Previous: Right truncation, Up: Tutorial
To enable phrase searching, the --phrase option must be given to af, together with -i and -C, at the time of indexing.
Here is an example of a phrase search:
$ af -s -d mydb -q '"Dinu Lipatti"'
This means, “Find all documents that contain the phrase, `Dinu Lipatti'.” (Note that the entire phrase must be enclosed in double quotes and that spaces are not significant.) Amberfish defines a phrase in this context as the word, `Dinu', followed by the word, `Lipatti', with no other words in between the two. Phrases may include more than two words, as in `John Quincy Adams'; and phrase words may be right truncated, for example, `Emil* Durkheim'.