> I am using DIH to import data from
> Oracle and every thing is working fine.
> the description field usually contains  more lines
> (from 10-300 lines). When
> I present the results through Solr/Browse It displays the
> results. However I
> have a requirement to show only 2-3 lines as description and
> provide some
> kind of link to expand the message if user is interested in
> reading it
> further.

Not sure about lines but if number of characters satisfies your needs, you can 
use this trick to return first N (300) characters to users.

&hl=true&hl.fl=TEXT&hl.maxAnalyzedChars=0&f.TEXT.hl.alternateField=TEXT&f.TEXT.hl.maxAlternateFieldLength=300

(replace TEXT with description in above URL)

Please note that you will display results coming under <lst 
name="highlighting"> section. Not <result name="response" section.

You will want to select only uniqueID field with &fl=uniqueID parameter.

Reply via email to