http://www/SearchApp/select/?q=id:vpn 
 
yeilds this: 
  <?xml version="1.0" encoding="UTF-8" ?> 
- <response>
- <lstname="responseHeader">
  <intname="status">0</int> 
  <intname="QTime">15</int> 
- <lstname="params">
  <strname="q">id:vpn</str> 
  </lst>
  </lst>
  <result name="response"numFound="0"start="0"/> 
  </response>
 
 
*****************************************
 
 http://www/SearchApp/select/?q=*:* 

yeilds this:
 
  <?xml version="1.0" encoding="UTF-8" ?> 
- <response>
- <lstname="responseHeader">
  <intname="status">0</int> 
  <intname="QTime">16</int> 
- <lstname="params">
  <strname="q">*.*</str> 
  </lst>
  </lst>
- <resultname="response"numFound="1"start="0">
- <doc>
  <strname="author">doc</str> 
- <arrname="content_type">
  <str>application/pdf</str> 
  </arr>
  <strname="id">pdfy</str> 
  <datename="last_modified">2011-05-20T02:08:48Z</date> 
- <arrname="title">
  <str>dmvpndeploy.pdf</str> 
  </arr>
  </doc>
  </result>
  </response>
 

From: Jan Høydahl <jan....@cominvent.com>
To: solr-user@lucene.apache.org; Michael Dockery <dockeryjava...@yahoo.com>
Sent: Monday, September 12, 2011 4:59 AM
Subject: Re: select query does not find indexed pdf document

Hi,

What do you get from a query http://www/SearchApp/select/?q=*:* or 
http://www/SearchApp/select/?q=id:vpn ?
You may not have mapped the fields correctly to your schema?

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

On 12. sep. 2011, at 02:12, Michael Dockery wrote:

> I am new to solr.  
> 
> I tried to upload a pdf file via curl to my solr webapp (on tomcat)
> 
> curl 
> "http://www/SearchApp/update/extract?stream.file=c:\dmvpn.pdf&stream.contentType=application/pdf&literal.id=pdfy&commit=true";
> 
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">0</int><int 
> name="QTime">860</int></lst>
> </response>
> 
> 
> but
> 
> http://www/SearchApp/select/?q=vpn
> 
> 
> does not find the document
> 
> 
> <response>
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">0</int>
> <lst name="params">
> <str name="q">vpn</str>
> </lst>
> </lst>
> <result name="response" numFound="0" start="0"/>
> </response>
> 
> 
> help is appreciated.
> 
> =================================================
> fyi
> I point my test webapp to the index/solr home via mod meta-data/context.xml
> <Context crossContext="true" >
>    <Environment name="solr/home" type="java.lang.String" 
>  value="c:/solr_home" override="true" />
> 
> and I had to copy all these jars to my webapp lib dir: (to avoid the 
> classnotfound)
> Solr_download\contrib\extraction\lib
>  ...in the future i plan to put them in the tomcat/lib dir.
> 
> 
> Also, I have not modified conf\solrconfig.xml or schema.xml.

Reply via email to