From: rlane@club.cc.cmu.edu (Rich Lane)
Subject: [sup-talk] On making inbox-mode and search-results-mode more similar
Date: Thu, 27 Aug 2009 02:50:29 -0400 [thread overview]
Message-ID: <1251341286-sup-9400@zyrg.net> (raw)
In-Reply-To: <1251323747-sup-1595@yoom.home.cworth.org>
Excerpts from Carl Worth's message of Wed Aug 26 18:24:36 -0400 2009:
> So what I want is for anytime a message is changed such that it no
> longer meets the current search criteria, it is immediately removed
> from the search results. I think that means simply implementing the
> is_relevant? method for SearcResultsMode where there is currently just
> the following comment:
>
> ## a proper is_relevant? method requires some way of asking ferret
> ## if an in-memory object satisfies a query. i'm not sure how to do
> ## that yet. in the worst case i can make an in-memory index, add
> ## the message, and search against it to see if i have > 0 results,
> ## but that seems pretty insane.
>
> That single-message index and search sounds exactly like what I want,
> and not insane at all. Has someone attempted this and found a
> performance issue? (In which case, I would think we just need to fix
> that performance bug.) Or is it simply a matter of nobody having tried
> to code this up yet? (In which case, I'll try, and I'll be glad for
> any pointers that anyone can give me on how to go about creating an
> in-memory index and searching on it.)
We had a thread a while back about applying label changes immediately
and I think the consensus was that that's a good idea. Doing this could
simplify a great deal of thread-index-mode code because a fast
is_relevant? could be implemented using existing index operations
without the special cases for archiving/etc and without creating an
inmemory database. I have a patch I plan to mail out soon that makes
changing labels with Xapian much quicker, so that should help. It'd be
great if you decide to tackle this.
next prev parent reply other threads:[~2009-08-27 6:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-26 22:24 Carl Worth
2009-08-26 22:52 ` Carl Worth
2009-09-03 18:39 ` William Morgan
2009-08-27 6:50 ` Rich Lane [this message]
2009-09-03 18:36 ` William Morgan
2009-09-03 18:44 ` Rich Lane
2009-09-03 18:50 ` William Morgan
2009-09-03 18:32 ` William Morgan
2009-10-06 17:30 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1251341286-sup-9400@zyrg.net \
--to=rlane@club.cc.cmu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox