Hi Ed, Ed Murray wrote: > Could > someone let me know the best Analyzer to use to get an exact match on a Unix > filename when it is inserted into an untokened field. > > Filenames > obviously contain spaces and forward slashes along with other characters. I > am using > a WhitespaceAnalyzer but when the query is parsed it is > chopped into different keywords as such: > > I have > tried several different Analyzers but I can’t seem to get what I want. > > Filename: > /repository/Administration/780 IT Support/filegate.txt > Query:URL:/repository/Administration/780 > URL:IT URL:Support/filegate.txt
The usual way to enable this is using PerFieldAnalyzerWrapper, with KeywordAnalyzer on the Unix filename field. Steve -- Steve Rowe Center for Natural Language Processing http://www.cnlp.org/tech/lucene.asp --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]