Cara Kerja Pencarian Magento

Salah satu pertanyaan paling umum yang kami terima adalah bagaimana mengoptimalkan fungsi pencarian Magento untuk mendapatkan hasil terbaik. Kenyataannya adalah bahwa hal itu tergantung pada apa yang ingin Anda lakukan – dengan persyaratan yang berbeda untuk berbagai jenis dan ukuran bisnis.

Mengkonfigurasi pencarian di Magento 1.x

Bagian ini difokuskan pada apa yang perlu Anda lakukan untuk membuat hasil di Magento 1.x lebih akurat. Di Magento 1.x, ada tiga opsi pencarian inti, yang disediakan untuk Anda ketika Anda mengkonfigurasi pengaturan pencarian web Anda. Tiga opsi yang tersedia untuk Anda adalah ‘like’, ‘fulltext’ dan ‘combine’.

  1. Bagaimana Opsi Pencarian ‘Like’ Bekerja
    Metode ‘like’ didasarkan pada metode kueri basis data yang menyatakan “Temukan hasil yang mirip dengan kata kunci ini”. Jadi, jika Anda menjual buku catatan, dan seseorang di situs web Anda mengetik kata ‘catatan’, pengaturan pencarian ‘like’ akan memungkinkan pengguna untuk melihat semua opsi di mana nama produk memiliki kata ‘catatan’ di dalamnya. Ini dianggap sebagai pendekatan yang lebih ‘mendekati’ untuk pencarian karena Anda tidak memaksa pengguna untuk hanya melihat hasil yang 100% cocok dengan kata kunci Anda.
    Jenis opsi ini dapat memiliki masalah kinerja dan sama sekali tidak didasarkan pada ‘relevansi’ sehingga ini bukan metode pencarian yang paling akurat. Manfaat utamanya yaitu memiliki kemampuan untuk menemukan produk jika pelanggan secara tidak sengaja salah ketik nama produk. Inilah sebabnya mengapa banyak orang lebih suka metode ‘fulltext’.
  2. Bagaimana Opsi Pencarian ‘Fulltext’ Bekerja
    Jika Anda memilih ‘fulltext’ sebagai ‘metode pencarian’ untuk mesin pencarian toko Anda, Anda akan memberikan pengunjung Anda dengan pencarian yang mendasarkan hasil pada relevansi. Pengunjung tidak akan menemukan kecocokan sebagian, jadi jika Anda mengetik ‘note’ di kotak pencarian, Anda tidak akan melihat produk ‘notebook’ terdaftar. Magento juga mencari deskripsi suatu produk. Keuntungan dari metode ini adalah Anda memberikan daftar produk yang lebih berkualitas berdasarkan pencarian mereka. Kerugian potensial adalah bahwa jika mereka membuat kesalahan dalam mengetik kata kunci, mereka tidak akan menemukan produk yang ingin mereka temukan. Inilah sebabnya mengapa opsi ketiga, berjudul ‘combine’, mungkin menarik bagi sebagian orang.
  3. Bagaimana Opsi Pencarian ‘Combine’ Bekerja
    Metode ‘combine’ menggunakan kekuatan pencarian ‘like’ dan ‘fulltext’. Ketika Anda mencari judul produk dengan kata kunci ‘note’ maka akan muncul hasilnya ‘notepad’ dll,  seperti layaknya pencarian dengan metode ‘like’.
    Adapun untuk menghasilkan hasil, metode ‘combine’, meskipun fleksibel dalam hal menemukan produk dengan kecocokan sebagian kata kunci, namun menggunakan fleksibilitas dan kekuatan pencarian ‘fulltext’ untuk mengurutkan hasil berdasarkan relevansi. Karena itu, seperti yang dijelaskan dalam judulnya, ini menggabungkan manfaat pencarian searching ‘like’ dan ‘fulltext ’. Sekarang setelah Anda terbiasa dengan logika di balik tiga opsi pencarian magento, sekarang saatnya mempelajari cara mengonfigurasi fitur pencarian Anda.

Konfigurasi pada backend

Ketika Anda masuk ke admin Magento, Anda akan melihat menu navigasi di bagian atas. Tautan di paling kanan berjudul “System”. Letakkan mouse Anda di atasnya dan Anda akan melihat menu drop down, pada menu itu, tautan terakhir di bagian paling bawah akan berjudul ‘configuration‘. Klik pada ‘configuration‘ dan Anda akan melihat halaman di mana ada menu tautan di sisi kiri. Scroll ke bawah halaman dan cari tautan ‘catalog’:

Screen-Shot-2013-06-13-at-12.53.44-PM

Anda akan melihat halaman tempat opsi konfigurasi pencarian berada. Inilah yang akan Anda lihat:

Screen-Shot-2013-06-13-at-12.55.03-PM

Klik pada item menu ‘Catalog Search’ dan Anda akan melihat pengaturan katalog:

Screen-Shot-2013-06-12-at-5.42.32-PM

Opsi “Search Type”, adalah pengaturan penggunaan opsi pencarian ‘like’, ‘fulltext’ atau ‘combine’. Saat Anda sudah menentukan pilihan, akan ada satu langkah lagi sebelum ini diterapkan; mengindeks katalog pencarian Anda. Setelah Anda membuat pilihan untuk ‘search type’ Anda harus memperhatikan bagian atas halaman admin. Anda akan melihat ini:

Screen-Shot-2013-06-12-at-5.44.05-PM

Klik tautan “Index Management” dan Anda akan dibawa ke halaman yang memungkinkan Anda untuk mengindeks ulang katalog pencarian Anda. Ini adalah langkah yang perlu bagi Magento . Ketika Anda berada di halaman itu Anda akan melihat ini:

Screen-Shot-2013-06-12-at-5.44.21-PM

Anda akan melihat bahwa ada dua baris dengan latar belakang merah. Latar belakang merah memberitahu Anda “Please, re-index me“. Untuk melakukan ini, yang harus Anda lakukan adalah memerikan centang untuk baris itu (dalam hal ini, pilih kedua baris) dan tekan tombol submit.

Catatan Penting Tentang Re-Indexing:

Katalog besar dengan lebih dari 5.000 produk akan membutuhkan lebih banyak waktu untuk mengindeks ulang daripada katalog dengan hanya beberapa ratus produk. Jadi bersabarlah saat proses ini sedang berlangsung. Anda akan diberitahu saat pengindeksan ulang selesai dengan pesan peringatan, di bagian atas halaman. Anda akan melihat bahwa item latar belakang merah sekarang memuat latar belakang hijau. Ini menunjukkan bahwa Anda telah berhasil melakukan pengindeksan ulang. Anda sekarang siap untuk memamerkan pengaturan pencarian baru Anda. Jika Anda perlu mengubah pengaturan pencarian lagi, cukup ikuti langkah-langkah dalam artikel ini.

Salah satu pertanyaan paling umum yang kami terima adalah bagaimana mengoptimalkan fungsi pencarian Magento untuk mendapatkan hasil terbaik. Kenyataannya adalah bahwa hal itu tergantung pada apa yang ingin Anda lakukan – dengan persyaratan yang berbeda untuk berbagai jenis dan ukuran bisnis.



 

How the Magento Search Works

One of the most common questions we receive is how to optimize the Magento search function to get the best results. The truth of the matter is that it depends on what you are looking to do – with requirements differing for different types and sizes of businesses.

Configuring search in Magento 1.x

This section is focused on what you need to do in order to make results in Magento 1.x more accurate, if you’re using native Magento search. In Magento 1.x, there are three core search options, which are provided to you when you configure your search settings. The three options available to you are ‘like’, ‘fulltext’ and ‘combine’.

  1. How ‘Like’ Search Option Works
    The ‘like’ method is based on a database query method that states “Find me results that are similar to this keyword”. So if you are selling notebooks and notepads, and somebody on your website types the word ‘note’, the ‘like’ search setting will allow that user to view all options where the product name has the word ‘note’ in it. It is considered a more ‘loose’ approach to searching because you are not forcing the user to only view results that are a 100% perfect match with your keyword.
    This type of option can have performance issues and is not based on ‘relevance’ at all so it is not the most accurate method of searching. Its primary benefit is the ability to find products if a customer accidentally mistypes a product name. This is why many people prefer the ‘fulltext’ method.
  2. How ‘Fulltext’ Search Option Works
    If you select ‘fulltext’ as the ‘search method’ for your store’s search engine, you will be providing your visitors with a search that bases results on relevance. It will *not* find partial matches, so if you type note in the search box, you are not going to see ‘notebook’ products listed.
    What it will do, though, is, behind the scenes, calculate which products are the best match for your search so if you have a few products with the keyword in the title, since Magento also searches the description of a product, it will be able to weigh which listings are worth showing first. The advantage to this method is you are providing a higher quality listing of products based on their search. The potential disadvantage is that if they make a mistake on typing the keyword, they will not find the product they intended to find. This is why the third option, titled ‘combine’, may be appealing to some people.
  3. How ‘Combine’ Search Option Works
    The ‘combine’ method uses the power of both ‘like’ and ‘fulltext’ searches. When it comes to matching product titles with the keyword, just like a ‘like’ query, it will allow for partial words to be matched such as ‘note’, as a search word, pulling up listings for ‘notepad’ – something a ‘fulltext’ search will not do.
    As for generating results, the ‘combine’ method, while it is flexible when it comes to finding products with a partial match of the keyword, it uses the flexibility and power of the ‘fulltext’ search in order to sort results by relevancy. Therefore, as it is described in its title, it is combining the benefits of ‘like’ and ‘fulltext’ searching. Now that you are familiar with the logic behind the three magento search options, it is time to learn how to configure your search feature.

Configuring it on the backend

When you are logged into the Magento admin, you will notice a navigation menu at the top. The link at the far right is titled “System”. Put your mouse over that and you will see a drop down menu and, on that menu, the last link at the very bottom will be titled ‘configuration’.
Click on ‘configuration’ and you will see a page where there is a menu of links on the left side. Scroll down the page and look for the ‘catalog’ link:

Screen-Shot-2013-06-13-at-12.53.44-PM

You will then see the page where the search configuration options reside. This is what you will see:

Screen-Shot-2013-06-13-at-12.55.03-PM

Click on the ‘Catalog Search’ menu item and then you will see the catalog settings:

Screen-Shot-2013-06-12-at-5.42.32-PM

The option “Search Type”, is where you will tell Magento to use a ‘like’, ‘fulltext’ or ‘combine’ search option. When you make your selection, there will be one more step before this becomes official; indexing your search catalog.
After you make your selection for ‘search type’ you will have to pay attention to the top of the admin page. You will see this:

Screen-Shot-2013-06-12-at-5.44.05-PM

Click on the “Index Management” link and you will be taken to the page that allows you to re-index your search catalog. This is a necessary step for Magento to properly adapt to your new search type setting. When you are on that page you will see this:

Screen-Shot-2013-06-12-at-5.44.21-PM

You will notice that there are two rows with a red background. The red background is telling you “Please, re-index me”. To do this, all you have to do is select the checkbox for that row (in this case, select both rows) and hit the submit button. You will then notice the page will need a few moments to properly handle your request.

Important Note About Re-Indexing:

Large catalogs with over 5,000 products will take more time to re-index than those catalogs with only a few hundred products. So be patient while this process is in progress. You will be notified of the completion of the re-indexing with an alert message, at the top of the page, telling you that re-indexing is complete. At this point, you will notice that the former red background items are now loading a green background. This indicates that you have successfully performed your re-index. You are now ready to show off your new search setting. Should you need to change the search setting again, simply follow the steps in this article and you will be good to go.

One of the most common questions we receive is how to optimize the Magento search function to get the best results. The truth of the matter is that it depends on what you are looking to do – with requirements differing for different types and sizes of businesses.