Lucene.Net support phrases?: What is best approach to tokenize comma-delimited data (atomically) in

Posted by Pete Alvin on Stack Overflow See other posts from Stack Overflow or by Pete Alvin
Published on 2010-03-15T12:48:08Z Indexed on 2010/03/15 12:49 UTC
Read the original article Hit count: 506

Filed under:
|

I have a database with a column I wish to index that has comma-delimited names, e.g.,

User.FullNameList = "Helen Ready, Phil Collins, Brad Paisley"

I prefer to tokenize each name atomically (name as a whole searchable entity). What is the best approach for this?

  1. Did I miss a simple option to set the tokenize delimiter?
  2. Do I have to subclass or write my own class that to roll my own tokenizer?
  3. Something else? ;)

Or does Lucene.net not support phrases?

Or is it smart enough to handle this use case automatically?

I'm sure I'm not the first person to have to do this. Googling produced no noticeable solutions.

© Stack Overflow or respective owner

Related posts about lucene

Related posts about lucene.net