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
dbeckst...@figleaf.com

-- 
*Fig Leaf Software, Inc.* 
https://www.figleaf.com/ 
<https://www.figleaf.com/>  

Full-Service Solutions Integrator






Reply via email to