lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dileepa Jayakody <>
Subject Indexing a token to a different field in a custom filter
Date Tue, 12 Nov 2013 06:31:14 GMT
Hi All,

In my custom filter, I need to index the processed token into a different
field. The processed token is a Stanbol enhancement response.

The solution I have so far found is to use a Solr client (solj) to add a
new Document with my processed field into Solr. Below is the sample code

 SolrServer server = new HttpSolrServer("http://localhost:8983/solr/");
        SolrInputDocument doc1 = new SolrInputDocument();
        doc1.addField( "id", "id1", 1.0f );
        doc1.addField("stanbolResponse", response);
        try {
} catch (SolrServerException e) {

This mechanism requires a new HTTP call to the local Solr server for every
token I process for the stanbolRequest field, and I feel it's not very

Is there any other alternative way to invoke a update request to add a new
field to the indexing document within the filter (without making an
explicit HTTP call using Solrj)?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message