How to add a new field to the document in a custom Solr Filter
问题 I am writing a custom filter in Solr to post a token to Apache Stanbol for enhancement and index the response to a different field in the same document. In my test code below I have got the Stanbol response and have added it as a new document to Solr. My requirement is to add the stanbolResponse as a field value to the same document being indexed. I think this can be done if I can retrieve the document Id from the TokenStream in the filter. Can anyone please help me with a sample code/example