You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Caroline Jen <ji...@yahoo.com> on 2004/02/05 00:38:39 UTC
Need Advices and Help
I am trying to build message inboxes for all
registered members of a web site. Therefore, each
thread (i.e. under a certain discussion topic) can
have several postings. And each registered member's
inbox showes a number of threads.
post receiver (register member) --> threads --> posts
I have figured out all the properties of a thread;
such as threadID, receiver, sender,
lastPostMemberName, threadCreationDate,
threadLastPostDate, threadViewCount, threadReplyCount,
..., etc.
I have also figured out all the properties of a
posting; such as postID, parentPostID, threadID,
receiver, sender, lastEditMemberName, postTopic,
postBody, postCreationDate, postLastEditDate, ...,
etc.
I want to use the Lucene to store and search threads
and postings.
What should be the "key"? What is the proper way to
store messages so that I can list threads when a
registered member wants to view his/her inbox?
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Need Advices and Help
Posted by Otis Gospodnetic <ot...@yahoo.com>.
I believe it would be something like Message-ID or
--- Caroline Jen <ji...@yahoo.com> wrote:
> I am trying to build message inboxes for all
> registered members of a web site. Therefore, each
> thread (i.e. under a certain discussion topic) can
> have several postings. And each registered member's
> inbox showes a number of threads.
>
> post receiver (register member) --> threads --> posts
>
> I have figured out all the properties of a thread;
> such as threadID, receiver, sender,
> lastPostMemberName, threadCreationDate,
> threadLastPostDate, threadViewCount, threadReplyCount,
> ..., etc.
>
> I have also figured out all the properties of a
> posting; such as postID, parentPostID, threadID,
> receiver, sender, lastEditMemberName, postTopic,
> postBody, postCreationDate, postLastEditDate, ...,
> etc.
>
> I want to use the Lucene to store and search threads
> and postings.
>
> What should be the "key"? What is the proper way to
> store messages so that I can list threads when a
> registered member wants to view his/her inbox?
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: [OT] Re: Need Advices and Help
Posted by Caroline Jen <ji...@yahoo.com>.
Hi, I did not explain my problem well; henceforth,
resulting in some misunderstanding. And I do not have
any experience in the Lucene.
My Project: build a message inbox for all "registered
members" of a web site.
Messages:
Messages are sent and received "within" the web
site. Messages are not going to be sent or received
over the internet. Therefore, mail readers are not
involved. And there is no message header.
Messages are sent from one member to another
member on the web site. Therefore, my program reads a
message similar to the way of reading a filled-out
form. My program reads and stores the text fields;
such as receiver, sender, subject, message body. And
I know how to read data and store data into a database
using Java.
Problem:
I have to provide a message inbox for each member
of the web site. Therefore, when a member clicks on
the "View Messages" button, I must search the database
for MemberName == receiver
and shows an inbox for that member. The inbox should
have a number of threads (i.e. discussion topics) that
were forwarded to that registered member.
And, if a certain thread is selected for viewing, I am
supposed to show several postings under that
particular discussion topic.
So, Lucene is supposed to search
1. MemberName == receiver and list all threads in a
certain order for that member
2. search all postings and list them in a certain
order under a selected thread
post receiver (register member) --> threads --> posts
I have figured out all the properties of a thread;
such as threadID, receiver, sender,
lastPostMemberName, threadCreationDate,
threadLastPostDate, threadViewCount, threadReplyCount,
..., etc.
I have also figured out all the properties of a
posting; such as postID, parentPostID, threadID,
receiver, sender, lastEditMemberName, postTopic,
postBody, postCreationDate, postLastEditDate, ...,
etc.
What is the proper way of indexing messages? And how
do I use the Lucene to do the search later on?
-C
--- petite_abeille <pe...@mac.com> wrote:
>
> On Feb 05, 2004, at 13:01, Otis Gospodnetic wrote:
>
> > I believe it would be the value of a 'Message-ID'
> or 'Reference' or
> > 'Reference-ID' message header.
> >
> > However, I remember reading that mail readers are
> not very good at
> > sticking to a standard (some RFC, I guess), so
> they don't always
> > provide the corrent ID, or they store it under
> non-standard names, etc.
> >
> > My suggestion: Look up Zoe (see Lucene Powered By
> page), download it,
> > check its source and learn from it.
>
>
http://zoe.nu/itstories/story.php?data=stories&num=24&sec=3
>
> And be ready for a lot of pain and suffering ;)
>
> Trying to "normalize" email is not for the
> faint-hearted.
>
> Just my 2�.
>
> Cheers,
>
> PA.
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> lucene-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
[OT] Re: Need Advices and Help
Posted by petite_abeille <pe...@mac.com>.
On Feb 05, 2004, at 13:01, Otis Gospodnetic wrote:
> I believe it would be the value of a 'Message-ID' or 'Reference' or
> 'Reference-ID' message header.
>
> However, I remember reading that mail readers are not very good at
> sticking to a standard (some RFC, I guess), so they don't always
> provide the corrent ID, or they store it under non-standard names, etc.
>
> My suggestion: Look up Zoe (see Lucene Powered By page), download it,
> check its source and learn from it.
http://zoe.nu/itstories/story.php?data=stories&num=24&sec=3
And be ready for a lot of pain and suffering ;)
Trying to "normalize" email is not for the faint-hearted.
Just my 2¢.
Cheers,
PA.
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Need Advices and Help
Posted by Otis Gospodnetic <ot...@yahoo.com>.
I believe it would be the value of a 'Message-ID' or 'Reference' or
'Reference-ID' message header.
However, I remember reading that mail readers are not very good at
sticking to a standard (some RFC, I guess), so they don't always
provide the corrent ID, or they store it under non-standard names, etc.
My suggestion: Look up Zoe (see Lucene Powered By page), download it,
check its source and learn from it.
Otis
--- Caroline Jen <ji...@yahoo.com> wrote:
> I am trying to build message inboxes for all
> registered members of a web site. Therefore, each
> thread (i.e. under a certain discussion topic) can
> have several postings. And each registered member's
> inbox showes a number of threads.
>
> post receiver (register member) --> threads --> posts
>
> I have figured out all the properties of a thread;
> such as threadID, receiver, sender,
> lastPostMemberName, threadCreationDate,
> threadLastPostDate, threadViewCount, threadReplyCount,
> ..., etc.
>
> I have also figured out all the properties of a
> posting; such as postID, parentPostID, threadID,
> receiver, sender, lastEditMemberName, postTopic,
> postBody, postCreationDate, postLastEditDate, ...,
> etc.
>
> I want to use the Lucene to store and search threads
> and postings.
>
> What should be the "key"? What is the proper way to
> store messages so that I can list threads when a
> registered member wants to view his/her inbox?
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org