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 seesiddharth <se...@yahoo.com> on 2010/06/15 09:35:24 UTC

Indexing HTML files in SOLR

Hi,
            I am using SOLR with Apache Tomcat. I have some .html
files(contains the articles) stored at XYZ location. How can I index these
.html files in SOLR? 

Regards,
Siddharth 
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Indexing-HTML-files-in-SOLR-tp896530p896530.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Indexing HTML files in SOLR

Posted by seesiddharth <se...@yahoo.com>.
Thank you so much for your help... I will try it...
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Indexing-HTML-files-in-SOLR-tp896530p910555.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Indexing HTML files in SOLR

Posted by Lance Norskog <go...@gmail.com>.
Ah! You need a SolrJ program that uses Tika to parse the files and
upload the text. I think there is such a program already but do not
know where it is.

Lance

On Thu, Jun 17, 2010 at 6:13 AM, seesiddharth <se...@yahoo.com> wrote:
>
> Thank you so much for the reply...The link suggested by you is helpful but
> they have explain everything with use of curl command which I don't want to
> use.
> I was more interested in uploading the .html documents using HTTP web
> request.
> So I have stored all .html files at one location & then created HTML parser
> which will fetch the content from these html file & build an XML string
> (like <add><doc><field
> name=""></field>.....</doc>......<doc>...</doc></add>). Then I sent these
> XML string using HTTP web request method (in .net ) to solr server to
> add/update the document.
> Now I am able to search the data in solr of all uploaded documents.
> It will be great if u answer my question :
> Is there any better approach to achieve the same functionality ?
>
> Regards,
> Siddharth
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Indexing-HTML-files-in-SOLR-tp896530p902644.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Lance Norskog
goksron@gmail.com

Re: Indexing HTML files in SOLR

Posted by seesiddharth <se...@yahoo.com>.
Thank you so much for the reply...The link suggested by you is helpful but
they have explain everything with use of curl command which I don't want to
use.
I was more interested in uploading the .html documents using HTTP web
request. 
So I have stored all .html files at one location & then created HTML parser
which will fetch the content from these html file & build an XML string
(like <add><doc><field
name=""></field>.....</doc>......<doc>...</doc></add>). Then I sent these
XML string using HTTP web request method (in .net ) to solr server to
add/update the document.
Now I am able to search the data in solr of all uploaded documents. 
It will be great if u answer my question : 
Is there any better approach to achieve the same functionality ? 

Regards,
Siddharth
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Indexing-HTML-files-in-SOLR-tp896530p902644.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Indexing HTML files in SOLR

Posted by Lance Norskog <go...@gmail.com>.
This is the tool in Solr for indexing various kinds of content. After
you learn the basics of indexing (see solr/example/exampledocs for
samples), the ExtractingRequestHandler will make sense:

http://wiki.apache.org/solr/ExtractingRequestHandler

On Tue, Jun 15, 2010 at 12:35 AM, seesiddharth <se...@yahoo.com> wrote:
>
> Hi,
>            I am using SOLR with Apache Tomcat. I have some .html
> files(contains the articles) stored at XYZ location. How can I index these
> .html files in SOLR?
>
> Regards,
> Siddharth
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Indexing-HTML-files-in-SOLR-tp896530p896530.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Lance Norskog
goksron@gmail.com