lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jw...@dicarta.com
Subject RE: problem Indexing path of files
Date Tue, 04 Apr 2006 18:32:52 GMT
Use the PerFieldAnalyzerWrapper and set your path (and probably name) to
KeywordAnalyzer.  Reserve whatever analyzer you have for the actual
contents/meta data of the file.

Do a search on PerFieldAnalyzerWrapper in this ML for examples.

Jeff Wang
diCarta, Inc.

-----Original Message-----
From: pepone pepone [mailto:pepone.onrez@gmail.com] 
Sent: Tuesday, April 04, 2006 11:00 AM
To: java-user@lucene.apache.org
Subject: problem Indexing path of files 

I trying to index the paths of a tree like structure in lucene

My docs have info like this

Node1
   name:a
   path:/a

Node2
   name:b
   path:/a/b

Node3
  name:c
  path:/a/b/c

 when search  for path:/a  the 3 Nodes match

I indexing this info using the StandardAnalyzer

any ideas to solve this trouble?


--
play tetris http://pepone.on-rez.com/tetris

---------------------------------------------------------------------
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