lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Schwartz" <t...@simpleobjects.com>
Subject RE: How to filter search based on file path
Date Mon, 27 Jun 2005 23:49:40 GMT
I have two ideas:
1.  wildcard query on the path field, but this only works if you have a
small number of elements in any path hierarchy.
2.  store each path component as a separate "term"
	a.  for instance:  /people/tony/property yields the following terms:
path:/people and path:/people/tony and text:property
	b.  now when someone wants to search for property in /people/tony,
you use the terms:  text:property and path:/people/tony



Tony Schwartz
tony@simpleobjects.com
"We're going to need a lot more cowbell."

-----Original Message-----
From: kambiz Afkhamian [mailto:kambizaf@yahoo.com] 
Sent: Monday, June 27, 2005 5:32 PM
To: java-user@lucene.apache.org
Subject: How to filter search based on file path

Hi 
 
I've indexed my website from the application root. When I run a query, it
beasically searches all content below the application root folder.
 
I would like to create feature that would allow users to search specific
folder/paths of this website. (i.e I would like to limit my query search to
specific folders)
 
Could you please give me some tips as to do this?
 
Thanks
K
 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message