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 zeroeffect <g....@gmail.com> on 2013/03/21 18:40:17 UTC

Solr 4.2.0 results links

While I am still in the beginning phase of solr I have been able to index a
directory of HTML files. I can search keywords and get results. The problem
I am having is the links to the HTML document is file based and http based.
I get the link but it points to file:\\ and not http:\\. I have been looking
for where to set this information. My setup is exporting database
information to individual HTML files then FTP them to the solr server and
have them indexed and accessed on our intranet.

Thank you for your guidance.

ZeroEffect



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-2-0-results-links-tp4049788.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr 4.2.0 results links

Posted by zeroeffect <g....@gmail.com>.
Thanks for the response. I found the issue. The data was being ingested
correctly it just being echoed incorrectly. while inspecting the final HTML
output I was able to find that the richtext-doc.vm file was used to display
my data. The code in this file generated the links to local files. I did
some more research on velocity coding and some trial and error I now have my
links displaying and working correctly.

I'm still picking apart the example collections and solr configs to suit my
needs. Currently I ran into a HEAP memory issue but that is more of a JAVA
thing. I have adjusted the setting and am testing it out.

Down the road I'd like to make the year a drop down option. This way you
only search the selected year and not the whole library but that is a
different topic and I need to do some more research.

Again thanks for the reply,

ZeroEffect



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-2-0-results-links-tp4049788p4053420.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr 4.2.0 results links

Posted by Erick Erickson <er...@gmail.com>.
Solr doesn't do anything with links natively, it just echoes back what you
put in. So you're sending file-based http links to Solr...

Best
Erick


On Thu, Mar 21, 2013 at 1:40 PM, zeroeffect <g....@gmail.com> wrote:

> While I am still in the beginning phase of solr I have been able to index a
> directory of HTML files. I can search keywords and get results. The problem
> I am having is the links to the HTML document is file based and http based.
> I get the link but it points to file:\\ and not http:\\. I have been
> looking
> for where to set this information. My setup is exporting database
> information to individual HTML files then FTP them to the solr server and
> have them indexed and accessed on our intranet.
>
> Thank you for your guidance.
>
> ZeroEffect
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-4-2-0-results-links-tp4049788.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>