5 Feb
2001
5 Feb
'01
8:19 a.m.
I read that ZCatalog supports phrasing. Yet it seems like searching for ['foo bar'] has the results of foo OR bar. How do I search for a phrase (in a TextIndex) ? Oren.
5 Feb
5 Feb
10:40 a.m.
New subject: [Zope-dev] Phrase search in ZCatalog
Oren Yosifon wrote:
I read that ZCatalog supports phrasing. Yet it seems like searching for ['foo bar'] has the results of foo OR bar. How do I search for a phrase (in a TextIndex) ?
You should use quotes to group the phrase. ['"foo bar"'] Take a look in the source code: lib/python/SearchIndex/UnTextIndex.py Follow the flow of code through from line 550: def query( ... ) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net
9214
Age (days ago)
9214
Last active (days ago)
1 comments
2 participants
participants (2)
-
Oren Yosifon -
Steve Alexander