: What about such solution: : Split path like string into smaller tokens and index them as seperate words eg: : #Top/World/Poland/# #Top/World/# #Top/#
i would be careful about your use of the word "token" in that sentence, but yes indexing each of the directory like paths as keywords and doing TermQueries on the path you are interested in should work fine. you can do this in a seperate field if you want to be suport both "parent path" searches and "exact path" searchs. Another way to eliminate hte TooManyClauses exception from doing a prefix search without needing to change your index, is to use a PrefixFilter wrapped in ConstantScoreQuery. CSR is in lucene 1.9, but i believe PrefixFIlter has only been commited to the Solr code base... http://incubator.apache.org/solr/ http://svn.apache.org/viewcvs.cgi/incubator/solr/trunk/src/java/org/apache/solr/search/PrefixFilter.java?rev=382610&view=markup ...it should work fine in any application. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]