SolrJ Beginner (NEED HELP URGENT)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SolrJ Beginner (NEED HELP URGENT)

Muneeb Ali
Hey All,

I have gone through the tutorial and ran Solrj example code. It worked fine.

I want to now implement my own full text search engine for my documents. I am not sure how should i start about doing this, since in example code I ran start.jar and post.jar?

do I have to run start.jar even for my own search engine java file, or do i have to code a java class that would activate local host at solr (i.e. http://localhost:8983/solr/)?

Also for my own search engine, I have created a schema.XML file, but not sure where to place it in my workspace?

Lastly, my documents are stored as JSON objects, should i get each JSON object individually> convert it to SolrInputDocument> and then add it to solrServer?

I am a beginner in Java and SolrJ, would highly appreciate any help.

Schema for storing my docs (research papers):
<schema name="mySchema" version="1">
  <fields>
        <field name="title" type="text" indexed="true" stored="true"/>
        <field name="abstract" type="text" indexed="true" stored="true"/>
        <field name="published_in" type="text" indexed="true" stored="true"/>
  </fields>
</schema>

Thanks very much,
-Ali
Reply | Threaded
Open this post in threaded view
|

Re: SolrJ Beginner (NEED HELP URGENT)

Erick Erickson
This link will answer many of your questions:
http://wiki.apache.org/solr/SolrInstall


About JSON: See SOLR-1690 (Jira) at:
https://issues.apache.org/jira/browse/SOLR-1690
WARNING: I have no clue what the condition of this patch is,
and have never used it..... But at least someone else is
thinking along the same lines....

<http://wiki.apache.org/solr/SolrInstall>HTH
Erick

On Mon, Feb 15, 2010 at 11:20 AM, muneeb <[hidden email]> wrote:

>
> Hey All,
>
> I have gone through the tutorial and ran Solrj example code. It worked
> fine.
>
> I want to now implement my own full text search engine for my documents. I
> am not sure how should i start about doing this, since in example code I
> ran
> start.jar and post.jar?
>
>



> do I have to run start.jar even for my own search engine java file, or do i
> have to code a java class that would activate local host at solr (i.e.
> http://localhost:8983/solr/)?
>
> Also for my own search engine, I have created a schema.XML file, but not
> sure where to place it in my workspace?
>
> Lastly, my documents are stored as JSON objects, should i get each JSON
> object individually> convert it to SolrInputDocument> and then add it to
> solrServer?
>
> I am a beginner in Java and SolrJ, would highly appreciate any help.
>
> Schema for storing my docs (research papers):
> <schema name="mySchema" version="1">
>  <fields>
>        <field name="title" type="text" indexed="true" stored="true"/>
>        <field name="abstract" type="text" indexed="true" stored="true"/>
>        <field name="published_in" type="text" indexed="true"
> stored="true"/>
>  </fields>
> </schema>
>
> Thanks very much,
> -Ali
>
> --
> View this message in context:
> http://old.nabble.com/SolrJ-Beginner-%28NEED-HELP-URGENT%29-tp27596171p27596171.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>