mirror of https://github.com/apache/lucene.git
SOLR-2384: add all fields info in debug mode
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1101136 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
73a31645eb
commit
c58d788ab2
|
@ -26,4 +26,17 @@
|
|||
#if($params.getBool("debugQuery",false))
|
||||
<a href="#" onclick='jQuery(this).siblings("pre").toggle(); return false;'>toggle explain</a>
|
||||
<pre style="display:none">$response.getExplainMap().get($doc.getFirstValue('id'))</pre>
|
||||
<a href="#" onclick='jQuery(this).siblings("pre2").toggle(); return false;'>toggle all fields</a>
|
||||
<pre2 style="display:none">
|
||||
#foreach($fieldname in $doc.fieldNames)
|
||||
<br>
|
||||
<span class="field-name">$fieldname :</span>
|
||||
<span>
|
||||
#foreach($value in $doc.getFieldValues($fieldname))
|
||||
$value
|
||||
#end
|
||||
</span>
|
||||
#end
|
||||
</br>
|
||||
</pre2>
|
||||
#end
|
|
@ -4,7 +4,7 @@
|
|||
#if($request.params.get('debugQuery'))
|
||||
<a href="#url_for_home?#q#if($list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end">disable debug</a>
|
||||
#else
|
||||
<a href="#url_for_lens&debugQuery=true">enable debug</a>
|
||||
<a href="#url_for_lens&debugQuery=true&fl=*,score">enable debug</a>
|
||||
#end
|
||||
#if($annotate)
|
||||
<a href="#url_for_home?#q#if($list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#boostPrice">disable annotation</a>
|
||||
|
|
Loading…
Reference in New Issue