Hi,

I want to highlight the search results without using Highlighligting
Parameters provided by Solrnet. following is my configuration for
highlighting parameters. 

Here is my Schema.xml
<field name="guid" type="text_en" indexed="true" stored="true"/>
<field name="title" type="text_en" indexed="true" stored="true">
<field name="link" type="text_en" indexed="true" stored="true"/>
<field name="fulltext" type="text_en" indexed="true" stored="true"/>
<field name="scope" type="text_en" indexed="true" stored="true"/>

Following is configuration for solrconfig.xml

<str name="hl">on</str>
<str name="hl.fl">fulltext title</str>
<str name="hl.encoder">html</str>
<str name ="hl.fragListBuilder">simple</str>
<str name="hl.simple.pre">&lt;em&gt;</str>
<str name="hl.simple.post">&lt;/em&gt;</str>s
<str name="f.title.hl.fragsize">0</str>
<str name="f.title.hl.alternateField">title</str>
<str name="f.name.hl.fragsize">0</str>
<str name="f.name.hl.alternateField">title</str>
<str name="f.content.hl.snippets">20</str>
<str name="f.content.hl.fragsize">2000</str>
<str name="f.content.hl.alternateField">fulltext</str>
<str name="f.content.hl.maxAlternateFieldLength">2000</str>
<str name="hl.fragmenter">regex</str>

When I tried to search result for fulltext:"What rules Apply", it is giving
me following response for highlighting which is correct.

<lst name="highlighting">
  <lst name="E836D2CC-76EF-4EC2-AD00-00015074537E">
    <arr name="fulltext">
      <str>     3538. <em>What</em> <em>rules</em> <em>apply</em> to
correction of errors in nonqualified deferred compensation plans</str>
    </arr>
  </lst>
  <lst name="63DA3DDB-AAF1-435B-8AA4-00BB60F596A2">
    <arr name="fulltext">
      <str>     3723. What is a Section 1042 election? <em>What</em>
<em>rules</em> <em>apply</em> to qualified sales to an ESOP</str>
    </arr>
  </lst>
</lst>

I want to highlighted this results in the application. I am using c#
language and does not want to do with solrnet DLL. is it possible to show
highlighting without code ? 

Please do needful.

Thanks



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlighting-search-result-without-using-solrnet-code-with-SOLR-4-1-tp4142222.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to