Search for multiple words

Bug #1161130 reported by Jendrik Seipp on 2013-03-27
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

It would be nice if RedNotebook could do an AND search for multiple words, i.e. the search for "Linux journal" should return all days containing both words.

Note that an implementation has to highlight the found words separately in the day contents.

Changed in rednotebook:
importance: Undecided → Medium
status: New → Confirmed
importance: Medium → Wishlist
description: updated
CYROT Laurent (clcyrot) wrote :

I share this request ! It would be very useful in every day use.
Thank you.

michael000070 (michael-j-hays) wrote :

I also would like this feature, for narrowing down search results. Thanks.

biffster (biffster) wrote :

I am not a coder, so I would not be much help in solving this. However, I recommend incorporating Matt Chaput's Whoosh python package - - to do the actual searching. Per the Whoosh documentation:

 It lets you connect terms with AND or OR, eleminate terms with NOT, group terms together into clauses with parentheses, do range, prefix, and wilcard queries, and specify different fields to search.

You could let Whoosh handle all of the search logic, and then focus on the rest of your code.

I agree that whoosh seems to be the best solution for this.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers