There's nothing built into the indexing process that stores URLs allowing you to fetch the document, you have to do that yourself. I'm not sure how the link is getting into the search results, you're assigning "doc1" as the ID of the doc, and I think the browse request handler, aka Solaritas is constructing the link as best it can. But that is only demo code, not intended to fetch the document.
In a typical app, you'll construct a URL for display that has meaning in _your_ environment, typically some way for the app server to know where the document is and how to fetch it. the browse request handler is showing you how you'd do this, but isn't meant to actually fetch the doc. Best Erick On Sat, Jun 29, 2013 at 1:29 PM, gilawem <mewa...@gmail.com> wrote: > Sorry, i thought it was obvious. The links that are broken are the links > that are returned in the search results. Using the example in the > documentation I mentioned below, to load a word doc via > curl " > http://localhost:8983/solr/update/extract?literal.id=doc1&commit=true" -F > "myfile=@myworddoc.doc" > > the broken link that shows up in the search results is > http://localhost:8983/solr/collection1/doc1 > > so I just need to know where in the solr config to be able to handle > requests when the URL points to collection/some_doc > > > On Jun 29, 2013, at 1:08 PM, Erick Erickson wrote: > > > What links? You haven't shown us what link you're clicking on > > that generates the 404 error. > > > > You might want to review: > > http://wiki.apache.org/solr/UsingMailingLists > > > > Best > > Erick > > > > > > On Fri, Jun 28, 2013 at 2:04 PM, MA LIG <mewa...@gmail.com> wrote: > > > >> Hello, > >> > >> I ran the solr example as described in > >> http://lucene.apache.org/solr/4_3_1/tutorial.html and then loaded some > doc > >> files to solr as described in > >> http://wiki.apache.org/solr/ExtractingRequestHandler. The commands I > used > >> to load the files were of the form > >> > >> curl " > >> http://localhost:8983/solr/update/extract?literal.id=doc1&commit=true" > -F > >> "myfile=@test.doc" > >> > >> I can successfully see search results in > >> http://localhost:8983/solr/collection1/browse< > >> http://192.168.3.72:8983/solr/collection1/browse?q=test> > >> . > >> > >> However, when I click on a link, I get a 404 not found error. How can I > >> make these links work properly? > >> > >> Thanks in advance > >> > >> -gw > >> > >