Skip to content

Commit

Permalink
Don't require 'text' field
Browse files Browse the repository at this point in the history
Remove the default field setting from the select handler. User must
either supply a field or use the 'df' request parameter.

Update the ping handler to use _yz_id which is required to be present in
the schema.
  • Loading branch information
rzezeski committed Feb 19, 2014
1 parent f4b4595 commit 7e106dc
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions priv/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -531,13 +531,9 @@
queries across multiple shards
-->
<requestHandler name="/select" class="solr.SearchHandler">
<!-- default values for query parameters can be specified, these
will be overridden by parameters in the request
-->
<lst name="defaults">
<str name="echoParams">explicit</str>
<int name="rows">10</int>
<str name="df">text</str>
</lst>
<!-- Custom Yokozuna component to translate custom shard filter
queries. -->
Expand Down Expand Up @@ -684,20 +680,11 @@
</requestHandler>
-->

<!-- ping/healthcheck -->
<!-- Used by Yokozuna to determine if an index is available. -->
<requestHandler name="/admin/ping" class="solr.PingRequestHandler">
<lst name="invariants">
<str name="q">solrpingquery</str>
</lst>
<lst name="defaults">
<str name="echoParams">all</str>
<str name="q">_yz_id:ping_query</str>
</lst>
<!-- An optional feature of the PingRequestHandler is to configure the
handler with a "healthcheckFile" which can be used to enable/disable
the PingRequestHandler.
relative paths are resolved against the data dir
-->
<!-- <str name="healthcheckFile">server-enabled.txt</str> -->
</requestHandler>

<searchComponent name="fq_shard_translator"
Expand Down

0 comments on commit 7e106dc

Please sign in to comment.