You need a dynamic field pattern for "ignored_*" to ignore unmapped metadata.

-- Jack Krupansky

-----Original Message----- From: franagan
Sent: Monday, July 22, 2013 5:14 PM
To: solr-user@lucene.apache.org
Subject: /update/extract error

Hi all,

im testing solrcloud (version 4.3.1) with 2 shards and 1 external zookeeper.
All its runing ok, documents are indexing in 2 diferent shards and select
*:* give me all documents.

Now im trying to add/index a new document via solj ussing CloudSolrServer.

the code:

CloudSolrServer server = new CloudSolrServer("localhost:2181");
server.setDefaultCollection("tika");


ContentStreamUpdateRequest up = new
ContentStreamUpdateRequest("/update/extract");
up.addFile(new File("C:\\sample.pdf"), "application/octet-stream");
up.setParam("literal.id", "666");

server.request(up);
server.commit();

when up.setParam("literal.id", "666");, a exception is thown:

*apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: ERROR:
[doc=66
6] unknown field 'ignored_dcterms:modified'*
       at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServ
er.java:402)
       at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServ
er.java:180)
       at
org.apache.solr.update.SolrCmdDistributor$1.call(SolrCmdDistributor.j
ava:401)
       at
org.apache.solr.update.SolrCmdDistributor$1.call(SolrCmdDistributor.j
ava:375)
       at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
       at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:43
9)
       at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:895)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:918)
       at java.lang.Thread.run(Thread.java:662)


My schema looks like this:
<fields>
   <field name="id" type="integer" indexed="true" stored="true"
required="true"/>
  <field name="title" type="string" indexed="true" stored="true"/>
  <field name="author" type="string" indexed="true" stored="true" />
  <field name="text" type="text_ind" indexed="true" stored="true" />
  <field name="_version_" type="long"     indexed="true"  stored="true"/>
</fields>

my solrConfig.xml:

 <requestHandler name="/update/extract"
class="org.apache.solr.handler.extraction.ExtractingRequestHandler">
    <lst name="defaults">
     <str name="fmap.Last-Modified">last_modified</str>
     <str name="uprefix">ignored_</str>
   </lst>
   <lst name="date.formats">
     <str>yyyy-MM-dd</str>
   </lst>
 </requestHandler>

i have already activate /admin/luke check the schema, no dcterms:modified
field in the response.... only the corrects fields declared in schema.xml

Can someone help me with this issue?

Thanks in advance.









--
View this message in context: http://lucene.472066.n3.nabble.com/update-extract-error-tp4079555.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to