Re: searching within documents

2013-09-21 Thread Nutan Shinde
And this works:
localhost:8080/solr/select?q=title:solr
this gives output as required doc,
but
localhost:8080/solr/select?q=contents:solr
 gives num found as 0

This is the new edited schema.xml :


























id



On Sat, Sep 21, 2013 at 7:58 PM, Nutan  wrote:

> I have been trying to resolve the problem of searching within doc,it wasnt
> working so I thought of installing solr on other system.I followed the same
> process->to install tomcat->create solr-home folder->solr.xml->then I get
> the homepage(admin)of solr and followed Solr cookbook for extracting
> handler
> but I get this error:
> update/extract/ not found on this server.
> Now I am stuck at both the systems.Therefore two different errors on
> different machines.
> Coming back to this error,I want to search within documents that is the
> contents of schema.xml :
> 
> 
>  multiValued="false"/>
>  multiValued="true"/>
>  multiValued="false"/>
>  multiValued="false"/>
>  multiValued="false"/>
>  multiValued="false"/>
>  multiValued="false"/>
>
>  multiValued="false"/>
>  multiValued="true"/>
> 
> 
> 
> 
> 
>
> 
> 
>  
> 
>  class="solr.StrField" />
> 
> id
> 
> 
>  multiValued="false"/>
>  multiValued="true"/>
>  multiValued="false"/>
>  multiValued="false"/>
>  multiValued="false"/>
>  multiValued="false"/>
>  multiValued="false"/>
>
>  multiValued="false"/>
>  multiValued="true"/>
> 
> 
> 
> 
> 
>
> 
> 
>  
> 
>  class="solr.StrField" />
> 
> id
> 
>
> In my solrconfig I have defined the standard handler for  select as :
>  default="true">
> 
>20
>*
>  
> 
>
> This is the example doc which i want to search,(this is the output for *:*
> query)
> 
> 8
> 
> nutan shinde
> 
> best book for solr
> solr,lucene,apache tika
> 
> solr,lucene is used for search based service.Google works uses web
> crawler.Lucene can implement web crawler
> 
> solr enterprise search server
> 00123467889767 </doc>
>
> I indexed this record through indexing using xml file.
> And I have no idea about copy fields,so  please help me.
> My Tomcat is working normal.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/searching-within-documents-tp4090173p4091368.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Indexing pdf files - question.

2013-09-08 Thread Nutan Shinde
Error got resolved,solution was  must be within 
tag.


On Sun, Sep 8, 2013 at 3:31 AM, Furkan KAMACI wrote:

> Could you show us logs you get when you start your web container?
>
>
> 2013/9/4 Nutan Shinde 
>
> > My solrconfig.xml is:
> >
> >
> >
> >  > class="solr.extraction.ExtractingRequestHandler" >
> >
> > 
> >
> > desc> which
> > is defined as shown below in schem.xml-->
> >
> > true
> >
> > attr_
> >
> > true
> >
> > 
> >
> > 
> >
> > 
> >
> >
> >
> > Schema.xml:
> >
> > 
> >
> >  > multiValued="false"/>
> >
> >  > multiValued="false"/>
> >
> >  > multiValued="false"/>
> >
> >  > multiValued="false"/>
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > doc_id
> >
> >
> >
> > I have created extract directory and copied all required .jar and
> solr-cell
> > jar files into this extract directory and given its path in lib tag in
> > solrconfig.xml
> >
> >
> >
> > When I try out this:
> >
> >
> >
> > curl
> > "http://localhost:8080/solr/update/extract?literal.doc_id=1&commit=true";
> >
> > -F myfile=@solr-word.pdf <mailto:myfile=@solr-word.pdf>   in Windows 7.
> >
> >
> >
> > I get /solr/update/extract is not available and sometimes I get access
> > denied error.
> >
> > I tried resolving through net,but in vain.as all the solutions are
> related
> > to linux os,im working on Windows.
> >
> > Please help me and provide solutions related o Windows os.
> >
> > I referred Apache_solr_4_Cookbook.
> >
> > Thanks a lot.
> >
> >
>


Re: Indexing pdf files - question.

2013-09-04 Thread Nutan Shinde
My solrconfig.xml is:

 





desc   

true

attr_

true







 

Schema.xml:

 

  

  





 















doc_id

 

I have created extract directory and copied all required .jar and solr-cell
jar files into this extract directory and given its path in lib tag in
solrconfig.xml

 

When I try out this:

 

curl
"http://localhost:8080/solr/update/extract?literal.doc_id=1&commit=true";

-F myfile=@solr-word.pdf    in Windows 7.

 

I get /solr/update/extract is not available and sometimes I get access
denied error.

I tried resolving through net,but in vain.as all the solutions are related
to linux os,im working on Windows.

Please help me and provide solutions related o Windows os.

I referred Apache_solr_4_Cookbook.

Thanks a lot.