Skip to content

Commit

Permalink
LRQA-56124 Update arg usage for solr
Browse files Browse the repository at this point in the history
  • Loading branch information
brookedalton authored and brianchandotcom committed Mar 11, 2020
1 parent e5cb988 commit e31252b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion build-test-solr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,27 @@ schema=schema.xml</echo>
</target>

<target name="print-solr-indices">
<property name="solr.print.query">
<![CDATA[
'{
"query": {
"bool": {
"must": [
{ "match": { "userName": "test test" } }
],
"must_not": [
{ "match": { "hidden": "true" } }
]
}
}
}'
]]>
</property>

<exec executable="curl" outputproperty="curl.output.solr.indices">
<arg line="http://localhost:8983/solr/liferay/select?q=*:*&amp;wt=json" />
<arg value="-d" />
<arg value="&apos;{&quot;query&quot;: {&quot;bool&quot;: {&quot;must&quot;: [{ &quot;match&quot;: { &quot;userName&quot;: &quot;test test&quot; } }],&quot;must_not&quot;: [{ &quot;match&quot;: { &quot;hidden&quot;: &quot;true&quot; } }]}}}&apos;" />
<arg value="${solr.print.query}" />
</exec>

<echo></echo>
Expand Down

0 comments on commit e31252b

Please sign in to comment.