Well, what was that last thing you changed? There's really not much here to go on, you have to provide more details about what you've tried, what evidence you have that the doc isn't indexed, etc.
have you looked at your Solr admin screen to see if maxDoc has increased? Have you committed your changes before looking? Have you....? You might review: http://wiki.apache.org/solr/UsingMailingLists Best, Erick On Mon, Feb 24, 2014 at 8:37 PM, rachun <rachun.c...@gmail.com> wrote: > Dear all, > > Could you guys please help me? > > I just try to index document into solar it doesn't give me any error but it > doesn't index document too but it used to work but not now please see.. > > #Solr Log > > > WARN - 2014-02-25 11:30:35.675; org.apache.solr.handler.loader.XMLLoader; > Unknown attribute id in add:allowDups > INFO - 2014-02-25 11:30:35.677; > org.apache.solr.update.processor.LogUpdateProcessor; [collection1] > webapp=/solr path=/update/ params={indent=on&wt=xml&version=2.2} > {add=[WT334455 (1460983704505548800)]} 0 3 > INFO - 2014-02-25 11:30:49.560; > org.apache.solr.update.DirectUpdateHandler2; start > > commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false} > INFO - 2014-02-25 11:30:49.566; org.apache.solr.core.SolrDeletionPolicy; > SolrDeletionPolicy.onCommit: commits: num=2 > > commit{dir=NRTCachingDirectory(org.apache.lucene.store.NIOFSDirectory@ > /Downloads/solr-4.6.0/example/solr/collection1/data/index > lockFactory=org.apache.lucene.store.NativeFSLockFactory@2a44b7f7; > maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_g17,generation=20779} > > commit{dir=NRTCachingDirectory(org.apache.lucene.store.NIOFSDirectory@ > /Downloads/solr-4.6.0/example/solr/collection1/data/index > lockFactory=org.apache.lucene.store.NativeFSLockFactory@2a44b7f7; > maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_g18,generation=20780} > INFO - 2014-02-25 11:30:49.567; org.apache.solr.core.SolrDeletionPolicy; > newest commit generation = 20780 > INFO - 2014-02-25 11:30:49.568; org.apache.solr.search.SolrIndexSearcher; > Opening Searcher@21ff9c03 main > INFO - 2014-02-25 11:30:49.569; org.apache.solr.core.QuerySenderListener; > QuerySenderListener sending requests to Searcher@21ff9c03 > main{StandardDirectoryReader(segments_g18:63044:nrt > _hop(4.6):C3444/1:delGen=1 _hp3(4.6):C1 _hp4(4.6):C1)} > INFO - 2014-02-25 11:30:49.569; org.apache.solr.core.QuerySenderListener; > QuerySenderListener done. > INFO - 2014-02-25 11:30:49.569; > org.apache.solr.update.DirectUpdateHandler2; end_commit_flush > INFO - 2014-02-25 11:30:49.569; org.apache.solr.core.SolrCore; > [collection1] Registered new searcher Searcher@21ff9c03 > main{StandardDirectoryReader(segments_g18:63044:nrt > _hop(4.6):C3444/1:delGen=1 _hp3(4.6):C1 _hp4(4.6):C1)} > INFO - 2014-02-25 11:30:49.570; > org.apache.solr.update.processor.LogUpdateProcessor; [collection1] > webapp=/solr path=/update params={commit=true} {commit=} 0 10 > > > PHP Code > > $options = array > ( > 'hostname' => \Config::get('database.connections.solr.host'), > 'port' => \Config::get('database.connections.solr.port'), > 'path' => '/solr' > ); > > $client = new SolrClient($options); > > $doc = new SolrInputDocument(); > > $doc->addField('product_id', 'WT334455'); > $doc->addField('product_name_en', 'Software'); > > $updateResponse = $client->addDocument($doc); > > print_r($updateResponse->getResponse()); > > I also do manual commit by this >> > http://localhost:8983/solr/update?commit=true > > Any idea please.. > Thank you very much, > Chun > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Can-not-index-document-in-solar-tp4119461.html > Sent from the Solr - User mailing list archive at Nabble.com. >