If your metadata requirements aren't too heavy, you could store all
the title, author, etc. info in Solr along with the index of the full
text of the document. Then when you submitted a query to Solr, you
could retrieve back the list of information you'd need to display a
page of search results, and use the start and rows params of a Solr
query to page through them.

If you're working in JSP and Servlets, you should definitely be using
the SolrJ library to talk to Solr.

Michael Della Bitta

------------------------------------------------
Appinions
18 East 41st Street, 2nd Floor
New York, NY 10017-6271

www.appinions.com

Where Influence Isn’t a Game


On Mon, Jan 28, 2013 at 10:10 PM, Luis Pedro <luispedr...@gmail.com> wrote:
> Hi there! I should first mention that im new to Solr and Lucene working
>
> I am trying to build a web application that interacts with Solr, i am
> already able to index pdf and word files using solr and search them through
> the solr interface which then gets me the xml with file details. Pretty
> good undestanding of schema.xml and solrconfig.xml. My problem is so far i
> haven't figured out to bring solr to my webapp so as to speak.
>
> Im using JSP and servlets mainly. I figured on my app i wud have the user
> enter a query string and once he hits enter, solr would return the id of
> the document which wud then be grabbed and searched on a db so i would have
> the author | title | etc (meaning i would be able to customize the search
> results to my liking according to details i defined on db for each file id).
>
> At first i thought the DataImportHandler(DIH) would be the way to go (bit
> silly i know), but then i realised that the DIH  was meant to read the data
> on the table , which isn't exactly what i need. So please if anyone sees my
> Waldo please care to point it out.
>
> Im open to suggestions on a better approach to look into things!
>
>
> Much gratitude in advance!

Reply via email to