If I'm reading this right, you're labeling certain fields as required. All docs MUST have those fields (I admit the error message could be more informative). So it sounds like things are behaving as I'd expect, your documents just don't contain the required fields.
Best Erick On Wed, Jul 13, 2011 at 4:54 AM, Sowmya V.B. <vbsow...@gmail.com> wrote: > Hi All > > I have a problem making the indexer work with the UIMA fields. > > Here is what I did (With the help of this community): I compiled a > Solr-UIMA-snapshot, using "ant clean dist", by adding my own annotators > there. > It compiled without any errors. and i obtained a jar file. > > Now, following the instructions on the readme ( > https://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_3/solr/contrib/uima/README.txt > ) > > I modified my SolrConfig.xml and Schema.xml as suggested in the README. > > As long as i say "required=false" on the UIMA generated fields, the indexing > works fine...without a UIMA annotation. > > However, once I say "required=true", I get an error: > > request: > http://anafi:8080/apache-solr-3.3.0/update/javabin?wt=javabin&version=2 > org.apache.solr.common.SolrException: Bad Request > > Bad Request > > request: > http://localhost:8080/apache-solr-3.3.0/update/javabin?wt=javabin&version=2 > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435) > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244) > at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:49) > at indexerapp.ir4llSolrIndexer.indexAll(ir4llSolrIndexer.java:150) > at indexerapp.ir4llSolrIndexer.main(ir4llSolrIndexer.java:57) > > Is thre something during indexing that I need to do apart from saying: > > UpdateResponse response = server.add(docs); > (where docs is a collection of documents, without UIMA indexing.) > > My understanding is that the UIMA annotation happens after calling the > server.add(docs). Is that right? > > S. > -- > Sowmya V.B. > ---------------------------------------------------- > Losing optimism is blasphemy! > http://vbsowmya.wordpress.com > ---------------------------------------------------- >