I want to implement Free Text search using remote Solr server with AEM 6.
I have done the configurations as advised here.
Now I want to demonstrate search using this remote solr server.I have created a search component for this.I have attached the code, pls let me know if this is correct way of connecting to remote solr server.
i am including
in my main parent pom(main pom of maven multimodule project) and
The project compiles fine locally but when I upload it as an osgi bundle the transitive dependencies cause a lot of unresolved dependencies.I wonder I why the transitive dependencies are not icluded in the resulting bundle even after specifying <Embed-Transitive>true</Embed-Transitive>.
Any help or sample code snippet will help a lot.
AEM already integrates with solr. Please have a look at http://docs.adobe.com/docs/en/aem/6-0/deploy/upgrade/queries-and-indexing.html . So solrj is already present as a bundle in AEM. In any case, i suggest you leverage the OOB integration. The OOB integration also respects the ACLs when it fetches from the indexes. You have to handle that if you query directly.