[Xapian-discuss] About search

Jim jim at fayettedigital.com
Fri Jul 16 12:46:21 BST 2010


¸ÕÃહ ¸ÃÃÁªÑ wrote:
> Hi, 
>
>  
>
> I have some question in search with xapian.
>
> I added 3 files which there are the same message in each file, but different extensions (e.g. pdf, txt, doc).
>
> So, I search in this database. I found 3 results. And I would like to know:
>
> How can I fillter result in only one extension(e.g. pdf extension) in this search? 
>
>  
>
> Regard
>
> Mr.T
>  		 	   		  
>   
One way would be to index the files using the extension as a separate 
field, possibly a boolean term.  That way you can limit the search to a 
single or set of extensions.

Jim.




More information about the Xapian-discuss mailing list