lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charlie Hubbard <>
Subject Solrj Tika/Cell not using defaultField
Date Sun, 14 Jun 2015 17:08:37 GMT
I'm having trouble getting Solr to pay attention to the defaultField value
when I send a document to Solr Cell or Tika.  Here is my post I'm sending
using Solrj


When I get the response back the NamedList contains the content it
extracted but it's under the name null and null_metadata respectively.
I've seen it return the defaultField I give it before, but for some reason
now it's not returning it.  I've even tried to configure the
ExtractRequestHandler like so:

    <requestHandler name="/update/extract"
        <lst name="defaults">
            <str name="defaultField">text</str>
            <!--<str name="lowernames">true</str>-->
            <!--<str name="uprefix">ignored_</str>-->

            <!-- capture link hrefs but ignore div attributes -->
            <str name="captureAttr">true</str>
            <str name="fmap.content">text</str>
            <str name="fmap.a">links</str>
            <str name="fmap.div">ignored_</str>
        <!--<str name="tika.config">tika.config</str>-->

But even that doesn't get picked up.  Here is the SOLR code I use to set
the parameters:

    public SolrRequest toSolrExtractRequest() throws IOException {
        ContentStreamUpdateRequest req = new
        req.addFile(getLocation(), null);

        req.setParam(EXTRACT_ONLY, "true");
        req.setParam(DEFAULT_FIELD, "text");

        return req;

So why is this not working?


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