This is what I had come up with, I didn't want to filter the results myself, makes calculating the number of actual results and page numbering a bit more work.... I think I'll leave what I have as is and move on while I think about a solution.
David Smith -----Original Message----- From: George Aroush [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 April 2007 1:45 p.m. To: [email protected] Subject: RE: Search result grouping Assuming I understood your requirement, I don't believe there is anything Lucene has to offer out of the box to do this. One solution is to store a field for each document you index which has the top level of the URL stored as www.site1/ When you get your hit result back, you have to filter out any hit which doesn't contain www.site1/ -- George Aroush > -----Original Message----- > From: David Smith [mailto:[EMAIL PROTECTED] > Sent: Monday, April 02, 2007 5:54 PM > To: '[email protected]' > Subject: Search result grouping > > > I have built an index of websites for a regional search site. > My next task with the results is to group the results by > site. i.e. if a search for 'doctor' returned > www.site1/services/medical.html the result I want would be www.site1/ > > Does lucene do this? Or are there any links, pointers to how > I might go about this? > > I'm using Lucene.Net 2.0.0 downloaded from the repository > about 1 month ago. > > David Smith >
