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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]