It's not always that when you change schema.xml you need to re-index. For eg., if you add any tokenizer for Query Analyser you don't need to reindex.
But in below case I suppose your changes in schema is related for indexing time. Then you need to re-index. Sequencing of documents depends entirely on relevance (score) of document. Hope it helps. Thanks, Abhinav -----Original Message----- From: Nutan [mailto:nutanshinde1...@gmail.com] Sent: 24 September 2013 14:34 To: solr-user@lucene.apache.org Subject: Re: searching within documents First I indexed documents using "indexing xml files to solr(sending doc to solr using xml file)" Then I made changes to schema.xml ie. I added analyzer and tokenizer. I then indexed some new documents using same procedure,now my searching with spaces works only for newly indexed files and not the initial files. Is it true that, after making changes to schema.xml re-indexing is necessary?? Is it the case that searching few words works and for others it may not, like when i query: q=contents:used output:numfound=0 and for q=contents:for output: "response":{"numFound":2,"start":0,"docs":[ { "id":"7", "author":["nutan"], "comments":"best book", "keywords":"solr,lucene", "contents":"solr,lucene is used for search based service.", "title":"solr cookbook 3.1", "revision_number":"0012345654334"}, { "id":"8", "author":["nutan shinde"], "comments":"best book for solr", "keywords":"solr,lucene,apache tika", "contents":"solr,lucene is used for search based service.Google works uses web crawler.Lucene can implelment web crawler", "title":"solr enterprise search server", "revision_number":"00123467889767"}] }} my shema.xml is: <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="text" 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"/> <copyfield source="id" dest="text" /> <copyfield source="author" dest="text" /> </fields> <types> <fieldType name="integer" class="solr.IntField" /> <fieldType name="long" class="solr.LongField" /> <fieldType name="string" class="solr.StrField" /> <fieldType name="text" class="solr.TextField" > <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory" /> <filter class="solr.EnglishMinimalStemFilterFactory" /> <filter class="solr.SnowballPorterFilterFactory" /> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" splitOnCaseChange="1"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> </analyzer> </fieldType> <fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> </types> <uniqueKey>id</uniqueKey> </schema> and also for each query : contents:for contents:search the sequence in which documents occur changes.What is the reason for it? How are the documents retrieved?Does it depend on the number of indexes -- View this message in context: http://lucene.472066.n3.nabble.com/searching-within-documents-tp4090173p4091697.html Sent from the Solr - User mailing list archive at Nabble.com.