lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Schwartz" <>
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
"We're going to need a lot more cowbell."

-----Original Message-----
From: kambiz Afkhamian [] 
Sent: Monday, June 27, 2005 5:32 PM
Subject: How to filter search based on file path

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?

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message