Closed (fixed)
Project:
Privatemsg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2008 at 09:40 UTC
Updated:
7 Mar 2009 at 00:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
litwol commentedInteresting idea.
however searching is not trivial so this needs a bit more thought.
By the way. later versions of drupal6 privatemsg will allow categorizing messages by tagging them. this will allow for easy message organization and may eliminate the need to search the messages. what are your thoughts on this?
Comment #2
yngens commentedwell, taxonomy categorization is a good idea. possibility to create indefinite number of folders with current versions is somehow resembles categorization. however, i believe that it would the best if eventually the module provided easiness for users to find any message with any keyword ever used in private messages. i understand that this is not trivial feature request, but why not to keep it in mind and keep this request open for some day in the future?
may i change the version of the ticket, because i was actually requesting for 5.x. versions, but of course it could be backported if 6.x had it.
Comment #3
litwol commentedsorry i wont dedicate my time to it.
Comment #4
taqwa commentedIt's unfortunate that this is a "won't fix" since this seems like a natural necessity as a site grows.
Comment #5
hakeem commentedI think it is a useful feature for many drupal users.
Comment #6
berdirThis feature has been commited yesterday.
The new privatemsg_filter module allows currently:
- Filter by authors
- Filter and organize messages by tags
- Search Message Titles
Searching could maybe be improved to search message body too and using proper text search instead of a simple LIKE '%placeholder%' but it does work for now.
Comment #7
yngens commentedThank you very much, Berdir. However, taking into attention that searching the bodies of the private messages is important feature, may I change the status of the issue back to active? The module's maintainers could change it to postponed, but please don't close it, so that we could track it in the future.
Comment #8
naheemsays commentedThe filter module does allow you to search the titles, just not the message body.
Comment #9
naheemsays commentedJust need to get into the hang of things again - nice simple patch - no idea if its a good idea or not - the module now searches through the message body too.
Comment #10
berdirThe problem with your patch is, that it is probably (I haven't tested it yet) quite slow. IMHO, we should atleast make it configurable so that sites with large amounts of private messages can disable it.
Another way of doing it would be to somehow re-use the standard drupal search, this might be complex because of all the permission issues or use fulltext indexes, but this needs atleast mysql5 or pgsql8.3 (afaik)
Comment #11
berdirSome Tests with MySQL with many generated messages
pm_index: 375k rows, 30MB
pm_message: 36k rows, 62MB
Without body searching:
---
With body searching and a short, single word:
With multipe words
So, it is slow, but actually not as slow as I expected it.
Attached is a improved patch, that does make the body search configurable.
Comment #12
litwol commentedin order to improve performance of the searches we must combine body and subject fields into the same table. for that reason we must first improve pmsg API so the search functionality can store relevant copy of the messages in _it's own table_ to perform searches faster.
lets not perform searches on the core pmsg tables. searches with table joins are super slow :(.
Comment #13
litwol commented**double post**
Comment #14
naheemsays commentedThey are in the same table. ???
Comment #15
litwol commented/me takes note not to reply to complicated issues seconds after waking up.
Comment #16
naheemsays commentedI assume that this needs review?
Comment #17
jordanmagnuson commentedI also think that search functionality is critical to the success of this module on large sites... can I also inquire into the current status? Are there plans to incorporate this into 5.x?
Comment #18
naheemsays commentedDrupal 5.x and no one is working on it - though if someone provides a working patch and ALSO others review it, it may go in (I have previously got tired of a Drupal 5 support request, provided a patch only for all comments to suddenly stop. I assume that the patch worked, but that is no way to actually get the patch committed.)
The advice is to move new developments to Drupal 6.
Comment #19
naheemsays commentedPatch in comment 11 works. I have re rolled it to not be offset in the privatemsg.module file, but no actual changes.
I do think that the wording in the settings page could be better, but I could not think of anything better.
Comment #20
jordanmagnuson commentedThanks for the patch nbz! I'll give it a shot.
I'd love to upgrade to Drupal 6 (and have done so with a number of my sites), but I've got one monster site going that incorporates a number of modules that have sadly not yet been ported... even when (if) everything finally does get ported, it will be a huge task to upgrade the site to D6; and by then I'll be told to upgrade to D7. Sigh. ;)
Comment #21
naheemsays commentedPS that patch is just a reroll of one by Berdir and is for Drupal 6 version.
yup, upgrading can be a never ending task. I guess it all depends on starting new developments/feature work on a new base, but past sites will always be a problem.
Comment #22
ilo commentedI'm making changes affecting this issue, but I'm not going to test the patch, just modify search/tag code in the module for the open issue #351542: user interface. Should I have this issue assigned anyway?
Comment #23
berdirI'm setting it back to CNR then.
Comment #24
naheemsays commentedI think this should stay at rtbc and if this goes in first, the other patch adapted.
Let them race to the finish line.
Comment #25
ilo commentedI could agree with this. Returning back to previous status (rtbc).
Comment #26
litwol commentedCommitted with some of my own changes to the patch.
Comment #27
ilo commentedOk, any way, I've done several improvements to the filtering and tagging schemas, And the result can replace the initial _filter module without trouble on merging.
I'll continue this 'searching' discussion in the UI thread. Please, go to #351542: user interface