[opencms-dev] CmsSolrResultList and highlighting
Marc Johnen
opencms at johnen.biz
Thu Jul 11 15:11:52 CEST 2013
Thanks Fabian,
I totally missed out on the updated documention and was still looking at the
PDF of 8.5.0.
It's great to see that OpenCms is finally getting some quality
documentation.
I noticed, that the suggested method
CmsSolrResultList#getSolrQueryResponse() is protected, but it would probably
deliver the same result as handleSolrSelect anyway.
Still when I'm trying the following request, the highlighting is empty.
http://localhost:8080/opencms/cms/handleSolrSelect?hl=on&hl.fl=*&hl.simple.pre=<em>&hl.simple.post=</em>&hl.snippets=5&fq=text:solr*&fq=type:toolbox-detail&fq=parent-folders:%28%%28request.siteroot%29/tools_and_services/toolbox/%29&rows=100&debugQuery=on
I've been searching for similar problems on the net, played arround with the
schema.xml, but could not find the problem.
Here is my search result:
<response><lst name="responseHeader"><int name="status">0</int><int
name="QTime">20</int><lst name="params"><str name="q">*:*</str><str
name="fl">*,score</str><str name="qt">edismax</str><int
name="rows">100</int><arr
name="fq"><str>con_locales:en</str><str>parent-folders:/sites/default/</str><str>content_en:solr*</str><str>type:toolbox-detail</str></arr><str
name="debugQuery">on</str><str name="sort">collector.date_prop
desc</str><long name="start">0</long><str name="hl">on</str><str
name="hl.fl">content_en</str><str name="hl.simple.post"></em></str><str
name="hl.simple.pre"><em></str><int
name="hl.snippets">5</int></lst></lst><result name="response" numFound="1"
start="0"><doc><str name="id">4196a1ba-e3b6-11e2-869d-37e77db176df</str><str
name="contentblob">[B:[B at 53292d62</str><str
name="path">/sites/default/tools_and_services/toolbox/toolbox.html</str><str
name="type">toolbox-detail</str><str name="suffix">.html</str><int
name="size">13334</int><date
name="created">2013-07-03T07:57:49.85Z</date><date
name="lastmodified">2013-07-11T11:02:53.211Z</date><date
name="contentdate">2013-07-11T11:02:53.211Z</date><date
name="relased">1970-01-01T00:00:00Z</date><date
name="expired">292278994-08-17T07:12:55.807Z</date><arr
name="res_locales"><str>en</str></arr><arr
name="con_locales"><str>en</str></arr><str
name="export_prop">false</str><str name="NavPos_prop">4.0</str><str
name="NavText_prop">Tool & Services</str><str
name="login-form_prop">/login.html</str><str name="Title_prop">Tool &
Services</str><str name="content-conversion_prop">cleanup;xhtml</str><str
name="title_prop">Toolbox 1 abc</str><str
name="template-elements_prop">/system/modules/com.osram.smp.frontend/templates/toolbox-detail.jsp</str><arr
name="category"><str>toolbox/</str><str>toolbox/main/</str><str>toolbox/main/how_to/</str><str>toolbox/product/</str><str>toolbox/product/one/</str><str>toolbox/theme/</str><str>toolbox/theme/theme_one/</str></arr><str
name="content_en">iMAGE with headline
Download Tab
http://www.welt.de
Content Tab
test test test test test test test test test test
t4
Example Tab copy Example Tab copy Example Tab copy Example Tab copy Example
Tab copy Example Tab copy Example Tab copy Example Tab copy
3
Koala
Cluster 2
Oborem non vulluptat. Ut nisit augait ipis nit iriustrud in henisi.
Heise
CT Headline
Toolbox 1 abc
Word 2003
Cluster 1
t3
f1c
f1d
Example Tab Headline
f1
Example Tab
PDF
Download Tab copy Download Tab copy Download Tab copy Download Tab copy
Download Tab copy Download Tab copy Download Tab copy Download Tab copy
Download Tab copy
abc Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy
Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy
Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy
Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy
Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy
Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy
Toolbox copy solr108
Word
htttp://ww.heise.de
Caption what for?
Toolbox Sub def
t1
Linklist
Download Tab Headline
Contacs Tab
2
t2
Ugait velendiam iure coreet nulluptat non vel eraessent lum volor init lum
quatio et inis adignit, quat luptat,quipis ercin vero ex exeraessi. Acip ex
er se vulla facin vel ut la aut nullaore del iriustrud minim velent ea
corpero odionumsan ea feugait augait ullan et, quatie tat amet wis del illan
ver sequipit eu facipsummy nonsecte magna commy num nibh eumsandre min
heniatet adipit il utpat, core faccumsan ero do consenit.
Dilbert
1
Welt
/home.html
CT Content copy Content copy Content copy Content copy Content copy Content
copy Content copy Content copy Content copy Content copy Content copy
xyz
Content Headline
http://www.dilbert.com
CT Subheadline
</str><str name="en_excerpt">iMAGE with headline
Download Tab
http://www.welt.de
Content Tab
test test test test test test test test test test
t4
Example Tab copy Example Tab copy Example Tab copy Example Tab copy Example
Tab copy Example Tab copy Example Tab copy Example Tab copy
3
Koala
Cluster 2
Oborem non vulluptat. Ut nisit augait ipis nit iriustrud in henisi.
Heise
CT Headline
Toolbox 1 abc
Word 2003
Cluster 1
t3
f1c
f1d
Example Tab Headline
f1
Example Tab
PDF
Download Tab copy Download Tab copy Download Tab copy Download Tab copy
Download Tab copy Download Tab copy Download Tab copy Download Tab copy
Download Tab copy
abc Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy
Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy
Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox copy Toolbox
copy Toolbox copy Toolbox copy</str><date
name="timestamp">2013-07-11T12:56:37.076Z</date><float
name="score">1.0</float><str
name="link">/opencms/cms/tools_and_services/toolbox/toolbox.html</str></doc></result><lst
name="debug"><str name="rawquerystring">*:*</str><str
name="querystring">*:*</str><str
name="parsedquery">MatchAllDocsQuery(*:*)</str><str
name="parsedquery_toString">*:*</str><lst name="explain"><str
name="4196a1ba-e3b6-11e2-869d-37e77db176df">
1.0 = (MATCH) MatchAllDocsQuery, product of:
1.0 = queryNorm
</str></lst><str name="QParser">LuceneQParser</str><arr
name="filter_queries"><str>con_locales:en</str><str>parent-folders:/sites/default/</str><str>content_en:solr*</str><str>type:toolbox-detail</str></arr><arr
name="parsed_filter_queries"><str>con_locales:en</str><str>parent-folders:/sites/default/</str><str>content_en:solr*</str><str>type:toolbox-detail</str></arr><lst
name="timing"><double name="time">6.0</double><lst name="prepare"><double
name="time">6.0</double><lst
name="org.apache.solr.handler.component.QueryComponent"><double
name="time">6.0</double></lst><lst
name="org.apache.solr.handler.component.FacetComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.MoreLikeThisComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.HighlightComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.StatsComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.DebugComponent"><double
name="time">0.0</double></lst></lst><lst name="process"><double
name="time">0.0</double><lst
name="org.apache.solr.handler.component.QueryComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.FacetComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.MoreLikeThisComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.HighlightComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.StatsComponent"><double
name="time">0.0</double></lst><lst
name="org.apache.solr.handler.component.DebugComponent"><double
name="time">0.0</double></lst></lst></lst></lst><lst
name="highlighting"><lst
name="4196a1ba-e3b6-11e2-869d-37e77db176df"/></lst></response>
-----
Greetings
Marc Johnen
http://www.johnen.biz
--
View this message in context: http://opencms.996256.n3.nabble.com/CmsSolrResultList-and-highlighting-tp23441p23443.html
Sent from the OpenCMS mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list