You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by 12rad <pr...@gmail.com> on 2012/05/22 21:02:43 UTC
clickable links as results?
Hi,
I want to display - a clickable link to the document along if a search
matches along with the no of times the search query matched.
What should i be looking at?
I am fairly new to Solr and don't know how I can achieve this.
Thanks for the help!
--
View this message in context: http://lucene.472066.n3.nabble.com/clickable-links-as-results-tp3985505.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: clickable links as results?
Posted by Dmitry Kan <dm...@gmail.com>.
Hello,
Set up a schema with at least 3 fields: id (integer or string, unique),
doc_contents (of type text_en for example), link (string).
Index each document into doc_contents field and use hightlights when
searching (hl=true&hl.fl=doc_contents). For each hit, count how many
highlights you have gotten and that's your occurrence_no, retrieve the link
as well.
-- Dmitry
On Tue, May 22, 2012 at 10:02 PM, 12rad <pr...@gmail.com> wrote:
> Hi,
>
> I want to display - a clickable link to the document along if a search
> matches along with the no of times the search query matched.
> What should i be looking at?
> I am fairly new to Solr and don't know how I can achieve this.
>
> Thanks for the help!
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/clickable-links-as-results-tp3985505.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
--
Regards,
Dmitry Kan