in solr4.0 where to set dataimport.properties
i am not find where to set dataimport.properties in solr4.0 beta who can help me ? -- View this message in context: http://lucene.472066.n3.nabble.com/in-solr4-0-where-to-set-dataimport-properties-tp4002766.html Sent from the Solr - User mailing list archive at Nabble.com.
where to set dataimport.properties in solr4.0 beta
dataimport.properties : interval=1 port= server=localhost doc.id= params=/select?qt\=/dataimport&command\=delta-import&clean\=false&commit\=true webapp=solr syncEnabled=1 last_index_time=2012-06-27 13\:05\:18 doc.last_index_time=2012-06-27 13\:05\:18 syncCores= how to set these in solr4.0 , Please be specific, thanks -- View this message in context: http://lucene.472066.n3.nabble.com/where-to-set-dataimport-properties-in-solr4-0-beta-tp4002767.html Sent from the Solr - User mailing list archive at Nabble.com.
solr highlight problem
sb.append("title:test vicky"); SolrQuery query = new SolrQuery(); query.setQuery(sb.toString()); query.setHighlight(true); query.addHighlightField("title"); query.setHighlightSimplePre(""); query.setHighlightSimplePost(""); query.setHighlightSnippets(2); query.setHighlightFragsize(500); title: my name test is vicky result:my name test is vicky why missing vicky? -- View this message in context: http://lucene.472066.n3.nabble.com/solr-highlight-problem-tp4013273.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Re: how solr4.0 and zookeeper run on weblogic
i make it work on weblogic. but when i add or update index ,it error <2012-10-17 ?Χ03?47·?3? CST> <2012-10-17 ?Χ03?47·?3? CST> <[weblogic.servlet.internal.WebAppServletContext@425eab87 - appName: 'solr', name: 'solr', context-path: '/solr', spec-version: '2.5'] Servlet failed with Exception java.lang.IllegalStateException: Failed to retrieve session: Cannot parse POST parameters of request: '/solr/collection1/update' at weblogic.servlet.security.internal.SecurityModule.getUserSession(SecurityModule.java:486) at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:81) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2116) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) Truncated. see log file for complete stacktrace > <2012-10-17 ?Χ03?47·?3? CST> how to handle it ? thanks, ray. 2012-10-18 zongweilei 发件人: Jan_Høydahl_/_Cominvent_[via_Lucene] 发送时间: 2012-10-17 23:13:10 收件人: rayvicky 抄送: 主题: Re: how solr4.0 and zookeeper run on weblogic Did it work for you? You probably also have to set -Djetty.port=8080 in order for local ZK not to be started on port 9983. It's confusing, but you can also edit solr.xml to achieve the same. -- Jan H酶ydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com 17. okt. 2012 kl. 10:06 skrev rayvicky <[hidden email]>: > thanks > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014167.html > Sent from the Solr - User mailing list archive at Nabble.com. If you reply to this email, your message will be added to the discussion below: http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014263.html To unsubscribe from how solr4.0 and zookeeper run on weblogic, click here. NAML -- View this message in context: http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014382.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Re: how solr4.0 and zookeeper run on weblogic
public int addIndexDocuements(String hostUrl) throws IOException { HttpSolrServer solrServer = getServer("http://localhost:7001/solr/collection1/";); int res=1; try { Collection docs = new ArrayList(); SolrInputDocument doc = new SolrInputDocument(); doc.addField("id", ""); doc.addField("title", "test"); docs.add(doc); solrServer.add(docs); solrServer.commit(); }catch(SolrServerException e) { System.out.println("Add docs Exception !!!"); e.printStackTrace(); }catch(IOException e){ e.printStackTrace(); }catch (Exception e) { System.out.println("Unknowned Exception!"); e.printStackTrace(); } } public HttpSolrServer getServer(String hostUrl) { HttpSolrServer server = null; server = new HttpSolrServer(hostUrl); server.setConnectionTimeout(100); server.setDefaultMaxConnectionsPerHost(100); server.setMaxTotalConnections(100); return server; } -- View this message in context: http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4013882p4014439.html Sent from the Solr - User mailing list archive at Nabble.com.