lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommaso Teofili <tommaso.teof...@gmail.com>
Subject Re: Solr UIMA integration
Date Wed, 06 Oct 2010 13:27:50 GMT
Hi Mahesh,
the issue here is that you're not sending a <field name="text">...</field>
to Solr from which UIMAUpdateRequestProcessor extracts text to analyze :)
Infact by default UIMAUpdateRequestProcessor extracts text to analyze from
that field and send that value to a UIMA pipeline.
Obviously you could choose to customize this behavior making
UIMAUpdateRequestProcessor read values from each field that is being indexed
in the document or another field.

However this made me realize that in such situations that field value is a
String "null" and not a null object, as I expected; so line 57 in
UIMAUpdateRequestProcessor should be changed as following to prevent such
errors:
...
if (textFieldValue != null && !"".equals(textFieldValue) &&
!"null".equals(textFieldValue)) {
...
Hope this helps,
Tommaso

2010/10/6 maheshkumar <maheshkumarrp@gmail.com>

>
> Hi Tommaso,
>
> I will try the service call outside Solr/UIMA.
>
> And the text i am using is
>
> FileName: Entity.xml
> <add>
> <doc>
>  <field name="reference">Entity.xml</field>
>  <field name="content">Senator Dick Durbin (D-IL)  Chicago , March 3,
> 2007.</field>
>  <field name="title">Entity Extraction</field>
> </doc>
> </add>
>
> and using curl to index it curl http://localhost:8080/solr/update -F
> solr.body=@Entity.xml
>
> Thanks
> Mahesh
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-UIMA-integration-tp1528253p1642093.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

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