OR, AND, wildcard... searches

19 views
Skip to first unread message

robinne

unread,
Jul 8, 2010, 12:43:39 AM7/8/10
to Djapian Users
Can Djapian use OR/AND, or wildcards? I was only successful with
limiting a search, for example "stock -market" was able to only pull
back items with stock, but not market.

robinne

unread,
Jul 8, 2010, 11:07:34 PM7/8/10
to Djapian Users
never mind. OR and AND have to be in all caps. Wasn't able to do
wildcard, but that is not as important.

Alex Koshelev

unread,
Jul 12, 2010, 2:06:01 AM7/12/10
to djapia...@googlegroups.com
Hi, robinne!

Yes, AND/OR queries must work as expected.

For wildcard-search try to search with WILDCARD flag:

    Entry.indexer.search('foo*').flags(Entry.indexer.flags.WILDCARD)


---
Alexander Koshelev


--
You received this message because you are subscribed to the Google Groups "Djapian Users" group.
To post to this group, send email to djapia...@googlegroups.com.
To unsubscribe from this group, send email to djapian-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/djapian-users?hl=en.


umc

unread,
Jul 23, 2012, 3:21:41 PM7/23/12
to djapia...@googlegroups.com
Alexander, do you know if and how it's possible to perform queries of form '*foo' ? 'foo*' works with WILDCHARD, but not '*foo' or '*foo*'. Also, what exactly do I need to do in order to get the AND/OR queries to work ? do they need another flag ? just searching for 'word1 OR word2' doesn't work for me...

Thanks for any suggestions.
Reply all
Reply to author
Forward
0 new messages