views:

115

answers:

1

I added PDF document to Solr

curl "http://localhost:8983/solr/update/extract?literal.id=doc2&captureAttr=true&defaultField=text&fmap.div=foo_t&capture=div"  -F "[email protected]"

and I would like to query it for word "errors"

http://localhost:8983/solr/select/?q=errors&version=2.2&start=0&rows=10&indent=on

I get no results.

However if I query it for word "java" I get one page(the added PDF text) and in visible text there is word "errors".

P.S. Im new to Lucene and Solr and I dont understand why not every word in that pdf is searchable.

+1  A: 

Take a look at this similar question and answer

Try using the analyzer to see which words are inserted in the index.

volothamp