You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bu...@apache.org on 2015/04/17 11:46:57 UTC
svn commit: r947995 - in /websites/production/cxf/content:
cache/docs.pageCache docs/jax-rs-search.html
Author: buildbot
Date: Fri Apr 17 09:46:56 2015
New Revision: 947995
Log:
Production update by buildbot for cxf
Modified:
websites/production/cxf/content/cache/docs.pageCache
websites/production/cxf/content/docs/jax-rs-search.html
Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/cxf/content/docs/jax-rs-search.html
==============================================================================
--- websites/production/cxf/content/docs/jax-rs-search.html (original)
+++ websites/production/cxf/content/docs/jax-rs-search.html Fri Apr 17 09:46:56 2015
@@ -118,11 +118,11 @@ Apache CXF -- JAX-RS Search
<!-- Content -->
<div class="wiki-content">
<div id="ConfluenceContent"><h1 id="JAX-RSSearch-JAX-RSSearch">JAX-RS Search</h1><p> </p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1419015870456 {padding: 0px;}
-div.rbtoc1419015870456 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1419015870456 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1429263985081 {padding: 0px;}
+div.rbtoc1429263985081 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1429263985081 li {margin-left: 0px;padding-left: 0px;}
-/*]]>*/</style></p><div class="toc-macro rbtoc1419015870456">
+/*]]>*/</style></p><div class="toc-macro rbtoc1429263985081">
<ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSSearch-JAX-RSSearch">JAX-RS Search</a>
<ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSSearch-AdvancedSearchQueries">Advanced Search Queries</a></li><li><a shape="rect" href="#JAX-RSSearch-SupportedQueryLanguages">Supported Query Languages</a>
<ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSSearch-FeedItemQueryLanguage">Feed Item Query Language</a></li><li><a shape="rect" href="#JAX-RSSearch-OpenDataProtocol">Open Data Protocol</a></li></ul>
@@ -138,7 +138,9 @@ div.rbtoc1419015870456 li {margin-left:
<ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSSearch-Basicqueries">Basic queries</a></li><li><a shape="rect" href="#JAX-RSSearch-Complexqueries">Complex queries</a></li></ul>
</li><li><a shape="rect" href="#JAX-RSSearch-Validation">Validation</a></li><li><a shape="rect" href="#JAX-RSSearch-Buildingthequeries">Building the queries</a>
<ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSSearch-FIQL">FIQL</a></li></ul>
-</li><li><a shape="rect" href="#JAX-RSSearch-Usingdatesinqueries">Using dates in queries</a></li><li><a shape="rect" href="#JAX-RSSearch-Alternativequerylanguages">Alternative query languages</a>
+</li><li><a shape="rect" href="#JAX-RSSearch-Usingdatesinqueries">Using dates in queries</a>
+<ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSSearch-Relativedates">Relative dates</a></li></ul>
+</li><li><a shape="rect" href="#JAX-RSSearch-Alternativequerylanguages">Alternative query languages</a>
<ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSSearch-OData">OData</a></li></ul>
</li><li><a shape="rect" href="#JAX-RSSearch-ContentExtraction">Content Extraction</a>
<ul class="toc-indentation"><li><a shape="rect" href="#JAX-RSSearch-UsingTikaContentExtractor">Using TikaContentExtractor</a></li><li><a shape="rect" href="#JAX-RSSearch-UsingTikaLuceneContentExtractor">Using TikaLuceneContentExtractor</a></li></ul>
@@ -927,7 +929,10 @@ FiqlSearchConditionBuilder bCustom = new
String ret = bCustom.is("foo").equalTo(d).query();
assertEquals("foo==2011-03-01T12:34:00", ret);
]]></script>
-</div></div><h2 id="JAX-RSSearch-Alternativequerylanguages">Alternative query languages</h2><p>Custom org.apache.cxf.jaxrs.ext.search.SearchConditionParser implementations can be registered as a "search.parser" contextual property starting from CXF 3.0.0-milestone2.</p><h3 id="JAX-RSSearch-OData">OData</h3><p> </p><p>Please use a "search.query.parameter.name" contextual property to indicate to the runtime that an OData '$filter' query option needs to be checked for the query expression and a "search.parser" property to point to the instance of org.apache.cxf.jaxrs.ext.search.odata.ODataParser, as shown in this <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerODataSearchTest.java">test</a>, see the startServers function.</p><p>And here is also an XML Spring configuration example (using SearchBean in this specific case):</p><div class="code panel pdl" style="border-widt
h: 1px;"><div class="codeContent panelContent pdl">
+</div></div><div class="action-body flooded"><p> </p><h3 id="JAX-RSSearch-Relativedates">Relative dates</h3><p>Date value can be specified as a duration from the current date/time, as its string representation, "PnYnMnDTnHnMnS".<br clear="none"> Resulted date will be calculated as a current date + specified duration. For example:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[?_search=date=ge=-P90D
+]]></script>
+</div></div><p> </p><p>This query will search for a date which is 90 days in the past or newer.</p></div><h2 id="JAX-RSSearch-Alternativequerylanguages">Alternative query languages</h2><p>Custom org.apache.cxf.jaxrs.ext.search.SearchConditionParser implementations can be registered as a "search.parser" contextual property starting from CXF 3.0.0-milestone2.</p><h3 id="JAX-RSSearch-OData">OData</h3><p> </p><p>Please use a "search.query.parameter.name" contextual property to indicate to the runtime that an OData '$filter' query option needs to be checked for the query expression and a "search.parser" property to point to the instance of org.apache.cxf.jaxrs.ext.search.odata.ODataParser, as shown in this <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerODataSearchTest.java">test</a>, see the startServers function.</p><p>And here is also an XML Spring configuration e
xample (using SearchBean in this specific case):</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[ <cxf:bus>
<cxf:properties>
<entry key="search.query.parameter.name" value="$filter" />