A TokenFilter to split words and numbers

2004-11-04 Thread william.sporrong
Hi, I’m trying to implement a TokenFilter that splits words that contains numbers into a phrase with separate words and numbers. For example I want to turn v70 into a phrase “v 70”. I’ve implemented a filter that does the actual split with a regular expression. Then I use this filter in my

Re: A TokenFilter to split words and numbers

2004-11-04 Thread Morus Walter
william.sporrong writes: Does it have something to do with the QueryParser guessing what kind of query it is by examining the string and thus presumes that the first string should not be parsed into a PhraseQuery? QueryParser creates a PhraseQuery for words that are tokenized to more than one