You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Dave Beckstrom <db...@figleaf.com> on 2019/03/04 18:08:25 UTC
Configuring Exchanges
Apparently exchanges.xml uses the jexl language. I am trying to get it
configured to choose the writer based on url criteria.
For example, let's say that I have a page that is located at the following
url:
http://www.somedomain.com/somedir/index.html
I want to select writer "indexer_solr_1" if the url for the page contains
the text "somedir" in the path. I tried the following and it doesn't
work. I also tried with "url" instead of "host" as the field being checked.
<writers>
<writer id="indexer_solr_1" />
</writers>
<params>
<param name="expr" value="doc.getFieldValue('host')=~'somedir'" />
</params>
Any suggestions?
Thanks!
Best,
Dave Beckstrom
*Fig Leaf Software* <http://www.figleaf.com/> | "We've Got You Covered"
*Service-Disabled Veteran-Owned Small Business (SDVOSB)*
763-323-3499
dbeckstrom@figleaf.com
--
*Fig Leaf Software, Inc.*
https://www.figleaf.com/
<https://www.figleaf.com/>
Full-Service Solutions Integrator