Hello! Take a look at custom posting formats. For example here is a nice post showing what you can do with Lucene SimpleText codec: http://blog.mikemccandless.com/2010/10/lucenes-simpletext-codec.html
However please remember that it is not advised to use that codec in production environment. -- Regards, Rafał Kuć Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch > Hi; > I want to use Solr for an academical research. One step of my purpose is I > want to store tokens in a file (I will store it at a database later) and I > don't want to index them. For such kind of purposes should I use core > Lucene or Solr? Is there an example for writing a custom analyzer and just > storing tokens in a file?