Search for multiple words

Bug #1161130 reported by Jendrik Seipp
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
RedNotebook
Confirmed
Wishlist
Unassigned

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
Revision history for this message
CYROT Laurent (clcyrot-deactivatedaccount) wrote :

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

Revision history for this message
michael000070 (michael-j-hays) wrote :

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

Revision history for this message
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 - https://pypi.python.org/pypi/Whoosh/ - 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.

Revision history for this message
Jendrik Seipp (jendrikseipp) wrote : Re: [Bug 1161130] Re: Search for multiple words

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.