Thảo luận về Search API và Apache Solr operating trong Drupal 7

Thảo luận về Search API và Apache Solr operating trong Drupal 7

Thảo luận về Search API và Apache Solr operating trong Drupal 7

In this article we will duscuss how  to configure the module Search API and Search API Solr search quickly, and how to display the data from Solr server with the help of the module Views. There will be no nentioning of the way Apache Solr Server can be installed. To ensure the correct performance of the function duscussed here, you will have to have it already installed on your server.

1) Add all the necessary resources.

We will have the following modules added and enabled Search APISearch API Solr searchViewsCToolsEntity, to our Drupal platform.  In addition to this, we need to pre-load the SolrPhpClient library to the libraries directory. Note that the module Search facets will keep disabled, because it requires facetsapi, at this point though this is irrelevant for our objective.

2) Set Solr server up to the end.

There are two files scheme.xml and solrconfig.xml in the directory module Search API Solr search. You must replace these files in our Solr core with those that are in the module. The files having been replacred Solr needs to be rebooted (i.e. reboot tomcat or Jetty).

3) Set up the admin part.

The following page appears:

Press "Add server". Choose Solr service in the field "Service class". After that, we can see the fields that are to be connected to our solr server. In our case, the completed fields look as follows:

After completing this we press "Create server". Provided everything has been configured correctly, we will see something like this:

If everything's been running well so far, we go back to the page /admin/config/search/search_api and click on "Add index". We select what are going to have indexed and with what server on this page. Of course, we are likely to select the server we have created. After filling the fields in, we click on "Create index". It brings us to a page where field selection can be accessed. We must select those fields which we want to work with - for example, those we display with the module views. In addition, we can add fields from another entity:

After the fields have been saved, we move over to the page with different index fields settings. Now, we skip this page and just click “Save configuration”.
That’s it. Now we can check up the number of the indexed nodes on our site (visit the "Status" in the Index Data Base). If nothing had been indexed press "index now".

4) Create view.

After our content has been indexed we can proceed to creating the view. Go to to the creation page view. We need to choose a name for our index (which we set during the process of setting up the file) for view to show the content from Solr index. This is the "Nodes" in my case:

Press Save.
Voila! We have created a view that shows the materials found in our index.
to be continued........

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Nợ rất nhục nhã, và tôi phải quyết tâm, quyết tâm trả nợ

Nợ rất nhục nhã, và tôi phải quyết tâm, quyết tâm trả nợ

Với cổ phiếu HNG, Công ty xác định không phải là công ty tài chính nên chủ trương cầm cổ phiếu là không có, HAGL sẽ bán để thu tiền trả nợ.

Apple vs. Samsung - Vụ kiện không chỉ trị giá 2,5 tỷ USD

Apple vs. Samsung - Vụ kiện không chỉ trị giá 2,5 tỷ USD

Cuộc chiến khốc liệt giữa Apple và Samsung tại tòa án đang đi vào giai đoạn căng thẳng nhất. Cả hai đang đưa tất cả những gì có thể để giành được chiến thắng tại phiên tòa thế kỷ này. Apple, thậm chí, chấp nhận vén bức màn bí mật,

Cấu hình Varnish để nâng cao hiệu suất cho Web Servers

Cấu hình Varnish để nâng cao hiệu suất cho Web Servers

Varnish is a very popular software package that can dramatically accelerate the work of serving HTTP pages.

Công ty diệt chuột T&C

 

Diet con trung