RE: highlighting multiple occurrences
This I didn't knew... I have a file named buscar.vm with the important part as follows: div class=results #foreach($doc in $response.results) #parse(hit.vm) #end /div hit.vm as follows: #set($docId = $doc.getFieldValue('id')) div class=result-document #parse(doc.vm) /div and finally doc.vm as follows: div #field('boletim') de $date.format(dd/MM/, $doc.getFieldValue('data')) #field('url') /div #if ($params.get('q').trim().length() 0) div#field('conteudo')/div #end -- View this message in context: http://lucene.472066.n3.nabble.com/highlighting-multiple-occurrences-tp4025715p4026048.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: highlighting multiple occurrences
I forgot to mention that the field that I wished to have multiple occurences shown is the field named conteudo I am already trying to make it iterate but up to now with no succes... -- View this message in context: http://lucene.472066.n3.nabble.com/highlighting-multiple-occurrences-tp4025715p4026050.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: highlighting multiple occurrences
I saw this... since I didn't know that much velocity I'll try to understand but I will be really glad if (obviously in case it didn't take you much time) you point me in the direction of the changes I need to do in my files... best regards, Rafael -- View this message in context: http://lucene.472066.n3.nabble.com/highlighting-multiple-occurrences-tp4025715p4026057.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: highlighting multiple occurrences
Did it as suggested in the link I sent tks a lot! -- View this message in context: http://lucene.472066.n3.nabble.com/highlighting-multiple-occurrences-tp4025715p4026063.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: highlighting multiple occurrences
Did you mean that you want multiple snippets? http://wiki.apache.org/solr/HighlightingParameters#hl.snippets -Original Message- From: Rafael Ribeiro [mailto:rafae...@gmail.com] Sent: Monday, December 10, 2012 11:20 AM To: solr-user@lucene.apache.org Subject: highlighting multiple occurrences Hi all, I have a solr instance with one field configured for highlighting as follows: str name=hlon/str str name=hl.flconteudo/str str name=hl.fragsize500/str str name=hl.maxAnalyzedChars9/str str name=hl.simple.prelt;font style=background-color: yellowgt;/str but I was willing to have the highlighter display multiple occurrences of the query instead of the first one... is it possible? I tried searching this mailing list but I couldn't find anyone mentioning this... best regards, Rafael -- View this message in context: http://lucene.472066.n3.nabble.com/highlighting-multiple-occurrences-tp4025715.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: highlighting multiple occurrences
yep! I tried enabling this and settings various values bot no success... still it only shows the first fragment of the search found... I also saw this http://lucene.472066.n3.nabble.com/hl-snippets-in-solr-3-1-td2445178.html but increasing maxAnalyzedChars (that was already huge) produced no difference at all. Do I have to change anything else? For example, something on the velocity template??? best regards, Rafael -- View this message in context: http://lucene.472066.n3.nabble.com/highlighting-multiple-occurrences-tp4025715p4025771.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: highlighting multiple occurrences
Rafael, Can you share more on how you are rendering the results in your velocity template? The data is probably being sent to you, but you have to loop through and actually access the data. -Original Message- From: Rafael Ribeiro [mailto:rafae...@gmail.com] Sent: Monday, December 10, 2012 2:26 PM To: solr-user@lucene.apache.org Subject: RE: highlighting multiple occurrences yep! I tried enabling this and settings various values bot no success... still it only shows the first fragment of the search found... I also saw this http://lucene.472066.n3.nabble.com/hl-snippets-in-solr-3-1-td2445178.html but increasing maxAnalyzedChars (that was already huge) produced no difference at all. Do I have to change anything else? For example, something on the velocity template??? best regards, Rafael -- View this message in context: http://lucene.472066.n3.nabble.com/highlighting-multiple-occurrences-tp4025715p4025771.html Sent from the Solr - User mailing list archive at Nabble.com.