Search from Solr 4.4 to include Alfresco Solr 1.4 - solr

I have an application which is using Solr 4.4 for search, Solr 4.4, has a core pointing to database [db1] and I am using JSon at the UI.
Now, in addition, I would like my application to search against Alfresco, which is Internally using Solr 1.4.
What is the preferred approach in getting this done.

You shouldn't access Alfresco's Solr directly, why?:
- Alfresco uses some specific query parameters (fq's) to respect permissions
- Alfresco has his one Query Syntax & Query Handler to handle their dynamic data model
So the way to go is to use the existing REST or CMIS APIs or to write your own Alfresco WebScript to execute the search & just consume this REST API in your search app.
more on Alfresco's search syntax:
http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/concepts/rm-searchsyntax-intro.html

Related

how to communicate with solr while searching?

I am learning how to develop a search application using solr.I have a website created using html where it has a search bar.
when the user enters a keywords to be searched it has to retrieve the matched records from data indexed into solr. my question is how to connect frontend
website with solr.
Please give me clear steps to implement the same.
There are different library for communication with solr, you can use depends on your technologies. some are ::
Solarium [PHP] :
Solarium is a PHP Solr client library that accurately model Solr concepts. Where many other Solr libraries only handle the communication with Solr, Solarium also relieves you of handling all the complex Solr query parameters using a well documented API.
https://github.com/solariumphp/solarium
Haystack [Django] :
Haystack provides modular search for Django. It features a unified, familiar API that allows you to plug in different search backends (such as Solr, Elasticsearch, Whoosh, Xapian, etc.) without having to modify your code.
https://django-haystack.readthedocs.io/en/master/
If you are using JavaScript you could use the Sorl REST API directly from the client.
There are various client APIs:
https://lucene.apache.org/solr/guide/6_6/client-apis.html

how can I integrate solr and nutch in Cloudera

I get Starting Zookeeper and solr service and in Cloudera Manager also I had create a HDFS.But i still not able to get working nutch and solr together in Cloudera.
I do not know the following steps in order to get crawling and indexing new urls and get Query Result of solr index.
Does anyone know how to proceed?

How the Apache Solr server is connecting to drupal db

Firstly Thanks to stackoverflow which is giving support to everyone.
Iam new to drupal and solr server
I have Successfully installed the solrserver in my system and I can able to search the data using "Apache Solr search module" In drupal7.
But Actually I dont know what is the Background process that is Running.But Inorder to have work with it I need to have a ground knowledge on it.Drupal is connecting to solr server using the url which I have Provided in admin UI.
As Per My knowledge I think the following is the backend flow of Apache solr server module
1)It sends the request of search string from drupal to solr server.
2)The solr server searches for the string and send the result back in the format of json to drupal.
3)Drupal displays the results
But How the solr server connects to drupal db inorder to search for the string or content?
Please help with this..I really In a need to know the backend flow how the request is handling
Thankyou
I'm not a Drupal specialist, but from the Solr prospective you are searching on the documents previously indexed on Solr. I.e., all documents must be indexed on Solr prior to the search.
Therefore, you have 2 ways here:
You call Solr API from your backend and push documents to Solr index. There are specific drupal solutions you may research, but here is the wiki article from Solr prospective describing how to index documents using only JSON API: http://wiki.apache.org/solr/UpdateJSON
You connect to your database directly from Solr and pull documents to Solr index. Here is the related wiki page: http://wiki.apache.org/solr/DataImportHandler

Plugging a solr index into django app using haystack

I have some data in a mysql database and its indexed through the solr admin app. I want to expose this data as facets in a django app. I explored ajax solr and it seems to be a very good solution for integrating solr into a web app with faceting, tags etc. I was also evaluating haystack to see if that would provide a much better solution.
Is there a way to integrate existing solr index with haystack ? It looks like we need to create a model and populate the model and solr would index the model. But in my case, I already have the index built and just want to integrate into django through haystack. would appreciate any thoughts regarding this
thanks
Joe.

How to search for key words using Solr from crawled web pages by nutch?

I have an application which crawls over the websites using Apache Nutch 2.1 and persisting data to the MySQL. I have to integrate Nutch and Solr which is not a problem as enough documentation is available on the internet.
After storing content from webpages, i want to add a search functionality based on Solr. I need to search for key words in the webpages. For example, if i am crawling websites which are movies related and i want to search for any specific movie(as a key word) from the crawled data, what are the changes i need to make to the Solr configurations. Do i need to write a separate plugin altogether or i can use existing plugins?What type of indexing i have to add to the solr configurations?

Resources