I am a new bee to Solr and till date my experience with Solr is great.

1.   I am trying to use Solr v1.3 in a web application which is deployed
into Tomcatv6.0. I am 
doing this with reference to the example-DIH thats provided with the solr
download.
2.   The web application(with name TestSolr) has only one HTML page in it
which is created with reference to the source code of the
http://rss.slashdot.org/Slashdot/slashdot.
3.   The solr configuration xml files are placed inside the directory
structure 
C:\web1\solr1\test\DIH\conf.
4.   The configuration files that are places inside the conf folder are 
admin-extra.html,protword.txt,stopwords.txt,synonyms.txt,dataconfig.xml,elevate.xml,schema.x
ml,solrconfig.xml,script.conf(These files are modified with respect to the
web 
application"TestSolr")
5.    I have set the java option in tomcat configuration as 
-Dsolr.solr.home=C:\web1\solr1\test(It is here that the solr.xml and DIH
folder are located 
inside which the conf folder is located)

When I try to run the apache-solr-1.3.war thats deployed in the tomcat, it
results to 
"Welcome to Solr" page with a "Solr Admin" hyper link in it. When clicking
on "Solr Admin" 
it results to an error page"HTTP Status 404 - missing core name in path"


The changes that i have made to the configuration XML files are as follows
(a)  I have made 1 Change to solrconfig.xml as follows
<requestHandler name="/dataimport"
        class="org.apache.solr.handler.dataimport.DataImportHandler">
        <lst name="defaults">
                <str name="config">dataconfig.xml</str>
        </lst>
   </requestHandler> other than this its the same as like the solrconfig.xml
thats inside 
the example-DIH\solr\rss\conf folder.
(b)  dataconfig.xml is as follows
<dataConfig>
        <dataSource type="HttpDataSource" />
        <document>
                <entity name="Test"
                        pk="id"
                        url="http://localhost:8080/TestSolr";
                        processor="XPathEntityProcessor"
                        forEach="/RDF/channel | /RDF/item"
                        transformer="DateFormatTransformer">

                <field column="source" xpath="/RDF/channel/title"
commonField="true" />
                <field column="source-link" xpath="/RDF/channel/link"
commonField="true" />
                <field column="subject" xpath="/RDF/channel/subject"
commonField="true" />
                <field column="id" xpath="/RDF/channel/id" commonField="true"/>

                <field column="title" xpath="/RDF/item/title" />
                <field column="description" xpath="/RDF/item/description" />
                <field column="creator" xpath="/RDF/item/creator" />
                <field column="item-subject" xpath="/RDF/item/subject" />
                <field column="date" xpath="/RDF/item/date" 
dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss" />
                </entity>
        </document>
</dataConfig>
(c)   In scheme.xml i have created the required fieldtypes and fields.

Please help me to make Solr to interact with the web application.
I do have few questions your suggestions about them would be of great help
1.   Is it possible to achieve the above said goal.
2.   Am I moving in the right direction.
3.   What are the changes that I have to do in order to achieve the above
said goal.
4.   Any suggestion or reference material would be of great help.
5.   How is that I can index the web application and search in it.

Thanks,
Udaya


-- 
View this message in context: 
http://www.nabble.com/Your-attention-is-needed%21-Solr-to-be-used-with-a-web-application.-tp22804930p22804930.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to