Try SolrJ. For Solr, here are some links to get started.
質問
I am very new to Apache Solr search engine . I have installed on my CENT OS VM and need to index the documents .Through the Apache Solr UI , I am able to put and index the document but Can I do the same through any JAVA API ? Kindly help me ... Thanks
解決
他のヒント
Use SolrJ
HttpSolrServer solr = new HttpSolrServer("<host>:<port>");
SolrQuery solrquery = new SolrQuery();
solrquery.setQuery("test");
solrquery.set("defType", "edismax");
solrquery.setHighlight(true);
QueryResponse queryResponse = solr.query(solrquery);
SolrDocumentList documentList = queryResponse.getResults();
Hope this helps :)
所属していません StackOverflow