this is my schema.xml :
<schema name="documents">
<fields> 
<field name="id" type="string" indexed="true" stored="true" required="true"
multiValued="false"/>
<field name="author" type="string" indexed="true" stored="true"
multiValued="true"/>
<field name="comments" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="keywords" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="contents" type="string" indexed="true" stored="true"
multiValued="false"/>
<field name="title" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="revision_number" type="string" indexed="true" stored="true"
multiValued="false"/>

<field name="_version_" type="long" indexed="true" stored="true"
multiValued="false"/>
<dynamicField name="ignored_*" type="string" indexed="false" stored="true"
multiValued="true"/>
</fields> 
<types>
<fieldType name="string" class="solr.StrField" />
<fieldType name="integer" class="solr.IntField" />
<fieldType name="long" class="solr.LongField" />

<fieldType name="text" class="solr.TextField" >
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/…
</analyzer>
</fieldType>
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true"
class="solr.StrField" />
</types>
<uniqueKey>id</uniqueKey>
</schema>

this is the document i want to search through contents:
<doc>
<str name="id">8</str>
<arr name="author">
<str>nutan shinde</str>
</arr>
<str name="comments">best book for solr</str>
<str name="keywords">solr,lucene,apache tika</str>
<str name="contents">
solr,lucene is used for search based service.Google works uses web
crawler.Lucene can implement web crawler
</str>
<str name="title">solr enterprise search server</str>
<str name="revision_number">00123467889767</s…
&lt;/doc>

But when i fire this query :

http://localhost:8080/solr/select?q=co…

I get 0 documents found.Document is successfully indexed.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/searching-within-documents-tp4090173.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to