Hi there, I am researching Xapian as a possible indexer/search solution for a web project. Within this project, I have a catalog of document types (articles, products, event postings, etc). Each document then has an access rights associated with it. In order to make this content searchable by the end user, I need to fill two requirements: 1. They need to be able to search within each individual document type, or a group of document types; 2. The search results need to only show the documents that the end user has permission to view (they have been granted the appropriate access rights) Looking at projects like Beeblex and GMANE, I gather that it is possible to segment indexes which would serve the first requirement of my project. Can someone please confirm this? For the latter requirement, does anyone have any experience implementing Xapian with such a requirement, or any tips on how this might be accomplished? Thank you, Michael Caplan
On Sun, Jul 02, 2006 at 10:49:27AM -0300, Michael Caplan wrote:> 1. They need to be able to search within each individual document > type, or a group of document types;Just add the document type to each document as boolean term, then filter on that when you want to.> 2. The search results need to only show the documents that the end > user has permission to view (they have been granted the > appropriate access rights)This thread (and especially the highlighted message) describe how you could do this: http://thread.gmane.org/gmane.comp.search.xapian.devel/112/focus=113 Cheers, Olly
Hi Olly, Bang on! Thanks for the reference! Michael Olly Betts wrote:> On Sun, Jul 02, 2006 at 10:49:27AM -0300, Michael Caplan wrote: > >> 1. They need to be able to search within each individual document >> type, or a group of document types; >> > > Just add the document type to each document as boolean term, then filter > on that when you want to. > > >> 2. The search results need to only show the documents that the end >> user has permission to view (they have been granted the >> appropriate access rights) >> > > This thread (and especially the highlighted message) describe how you > could do this: > > http://thread.gmane.org/gmane.comp.search.xapian.devel/112/focus=113 > > Cheers, > Olly >