Re:Re: [Zope-dev] Phrase search in ZCatalog
Steve Alexander wrote: >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( ... ) Hi Steve, Thx. But for some reason this doesn't work on my Win2K/Zope2.3. Oren. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [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 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Phrase search in ZCatalog
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. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )