Hi all,

Some help with function queries.
I am trying to use a custom function query where the field is declared as:

<fieldType name="token1" class="solr.TextField">
<analyzer><tokenizer class="com.company.solr.SpecificTokenFactory"
whichToken="1" /></analyzer></fieldType>

In the code, I am trying to retrieve the string value of this field by:

 DocValues token =  vs.getValues(context, reader);
...
String str = token.strVal(docNum);

But getting the string of the ord value of this field rather then the
field's content. The ord value is correct for the specific document, but I
cannot locate the function to actually retrieve the string value.

Help is much appreciated.

Reply via email to