Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Multi word match #277
Thank you for the Paperless project, it's exactly what I was looking for and it's extremely well-built.
Here's a pull request for your consideration: support for multi-word search terms in match text.
Use case: suppose I want to add Bob Marley as a correspondent, but his name may appear either as "Bob Marley" or "Marley, Bob". So with this feature, I can use the MATCH_ANY mode and set the match text to
@ishirav I just ran the tests with
The complaint appears to be coming from a list comprehension you added containing a
The idea behind this line is to build a regular expression, such as "Daniel\s+Quinn" so that any whitespace characters will be acceptable between the words.