Not able to get the DocTransformer [explain] to work in Solr 5. I'm sure I'm
doing something wrong. But I'm following the example in the documentation.
https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents
Other transformers ( [docid] and [shard] ) are working as expected. Anyone know
how to make this work? I've used it in the past with Solr 4. Any information
greatly appreciated. Query and results follow.
Thanks,
Charles
http://localhost:8983/solr/access_shard1_replica1/select?q=generic
&rows=1&fl=id,[docid],[shard],[explain
style=nl]&wt=json&indent=true&defType=edismax&qf=allTitle^3 allText^2
contents&debugQuery=true
{
"responseHeader":{
"status":0,
"QTime":13,
"params":{
"q":"generic\n",
"defType":"edismax",
"indent":"true",
"qf":"allTitle^3 allText^2 contents",
"fl":"id,[docid],[shard],[explain style=nl]",
"rows":"1",
"wt":"json",
"debugQuery":"true"}},
"response":{"numFound":5,"start":0,"maxScore":2.890213,"docs":[
{
"id":"99",
"[docid]":70,
"[shard]":"http://10.13.49.9:8983/solr/access_shard1_replica1/"}]
},
"spellcheck":{
"suggestions":[],
"collations":[]},
"debug":{
"track":{
"rid":"-access_shard1_replica1-1464265350378-8",
"EXECUTE_QUERY":{
"http://10.13.49.9:8983/solr/access_shard1_replica1/":{
"QTime":"1",
"ElapsedTime":"5",
"RequestPurpose":"GET_TOP_IDS",
"NumFound":"5",
"Response":"{responseHeader={status=0,QTime=1,params={df=allText,distrib=false,spellcheck.dictionary=andreasAutoComplete,fl=[uri,
score],shards.purpose=4,spellcheck.maxCollations=5,fsv=true,shard.url=http://10.13.49.9:8983/solr/access_shard1_replica1/,rid=-access_shard1_replica1-1464265350378-8,defType=edismax,qf=allTitle^3
allText^2 contents,wt=javabin,debug=[false, timing,
track],qt=/select,start=0,rows=1,version=2,shards.qt=/select,q=generic\n,enableElevation=false,spellcheck=true,requestPurpose=GET_TOP_IDS,NOW=1464265350377,spellcheck.onlyMorePopular=true,isShard=true,spellcheck.count=5,debugQuery=false,spellcheck.collate=true}},response={numFound=5,start=0,maxScore=2.890213,docs=[SolrDocument{uri=http://foo/bar/Generic/99,
score=2.890213}]},sort_values={},spellcheck={suggestions={},collations={},originalTerms=[generic]},debug={timing={time=1.0,prepare={time=0.0,query={time=0.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},elevator={time=0.0},autoComplete={time=0.0},debug={time=0.0}},process={time=0.0,query={time=0.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},elevator={time=0.0},autoComplete={time=0.0},debug={time=0.0}"}},
"GET_FIELDS":{
"http://10.13.49.9:8983/solr/access_shard1_replica1/":{
"QTime":"2",
"ElapsedTime":"4",
"RequestPurpose":"GET_FIELDS,GET_DEBUG",
"NumFound":"1",
"Response":"{responseHeader={status=0,QTime=2,params={df=allText,distrib=false,spellcheck.dictionary=andreasAutoComplete,fl=[id,[docid],[shard],[explain
style=nl],
uri],shards.purpose=320,spellcheck.maxCollations=5,shard.url=http://10.13.49.9:8983/solr/access_shard1_replica1/,rid=-access_shard1_replica1-1464265350378-8,defType=edismax,qf=allTitle^3
allText^2 contents,wt=javabin,debug=[timing,
track],qt=/select,rows=1,version=2,shards.qt=/select,q=generic\n,enableElevation=false,spellcheck=false,requestPurpose=GET_FIELDS,GET_DEBUG,NOW=1464265350377,spellcheck.onlyMorePopular=true,ids=http://foo/bar/Generic/99,isShard=true,spellcheck.count=5,debugQuery=true,spellcheck.collate=true}},response={numFound=1,start=0,docs=[SolrDocument{id=99,
[docid]=70,
[shard]=http://10.13.49.9:8983/solr/access_shard1_replica1/}]},debug={rawquerystring=generic\n,querystring=generic\n,parsedquery=(+DisjunctionMaxQuery((allTitle:gener^3.0
| contents:gener |
allText:gener^2.0)))/no_coord,parsedquery_toString=+(allTitle:gener^3.0 |
contents:gener |
allText:gener^2.0),explain={http://foo/bar/Generic/99=\n2.890213 = max of:\n
2.890213 = weight(allTitle:gener^3.0 in 70) [DefaultSimilarity], result of:\n
2.890213 = fieldWeight in 70, product of:\n 1.0 = tf(freq=1.0), with freq
of:\n1.0 = termFreq=1.0\n 4.624341 = idf(docFreq=1, maxDocs=75)\n
0.625 = fieldNorm(doc=70)\n 0.33601448 = weight(contents:gener in 70)
[DefaultSimilarity], result of:\n0.33601448 = score(doc=70,freq=1.0),
product of:\n 0.2541428 = queryWeight, product of:\n3.5257287 =
idf(docFreq=5, maxDocs=75)\n0.07208234 = queryNorm\n 1.3221483 =
fieldWeight in 70, product of:\n1.0 = tf(freq=1.0), with freq of:\n
1.0 = termFreq=1.0\n3.5257287 = idf(docFreq=5, maxDocs=75)\n
0.375 =
fieldNorm(doc=70)\n},QParser=ExtendedDismaxQParser,altquerystring=null,boost_queries=null,parsed_boost_