View raw Solr tokens for one field in one document

I am debugging my Solr scheme, and I would like to see the results of the tokenization of a certain field.

For a simplified example, if I have:

<fieldType name="text" class="solr.TextField" omitNorms="false">
    <analyzer>
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StandardFilterFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <filter class="solr.PorterStemFilterFactory"/>
        <filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="15" side="front"/>
    </analyzer>
</fieldType>

and I indexed a field with a value "Hello, worlds!", I want to see something line by line:

hello world he el ll lo hel ell llo hell ello hello wo or rl ld wor orl rld worl orld

to make sure everything will be denoted as I assume.

Is it possible?

+5
source share
2 answers

Yes, Admin> Analysis is exactly what you want.

But there is another great tool that allows you to read the index and see how the field or document was indexed.

It's called Luke , and it is invaluable in troubleshooting and tuning your circuit.

+6

, "" " Solr":

+2

All Articles