Hi all,

has anyone some code snippet on how to convert the String representation of a SortableIntField (or SortableLongField or else) to a java.lang.Integer or int?

Input: String (cryptic, non human readable, value of a sint field)
Output: Integer or int

I would appreciate if anyone could give me some hint/pointer/input on how to do that. I couldn't find anything about it in the Javadoc for SortableIntField or by googling for it.



More in detail:
Requesting for example "interestingTerms" using the MoreLikeThisHandler returns a list of fields and terms where the terms' string values are not externalized. Thus, fields of type sint do not contain the actual int value but some cryptic (non-human-readable) string. I would like to extract the int value to create another query with it.


Thanks a lot,
Chantal

Reply via email to