In this article, we will see how to use expertrec’s custom search extractor feature. A extractor is usually used to extract certain portions of your website to display in expertrec’s custom search engine.

Usually a custom extractor is used when the automatic extractor fails to meet your needs.

custom search extractor

Here is how you can use the custom extractor.

There are two components you can control in your expertrec search engine-

  1. Image
  2. Search contentcustom search extractor

To use the custom search extractor, follow the steps below

  1. Create your custom search engine using https://cse.expertrec.com/?platform=cse
  2. Go to crawl->Advanced -> Manual extraction.
  3. Under Image, enter your Image CSS selector and CSS attribute.
  4. Under Search content enter your CSS selector and CSS attribute.
  5. Click Save.

Lets take an example for the following page.

Here our aim is to create a custom search engine for products. We will take a sample product page and use its structure to create the search engine components.

Here is a product page that we want to configure using our selector for appearing in the search results. Here is a product ACR 1926 . The same settings will apply to other products as well which have a similar structure.

custom search extractor

How to get image css selector?

  1. Right click on the image
  2. Click on inspect element
  3. Right click on the highlighted code.
  4. Go to copy-> copy selector.custom search extractor
  5. Paste in the search content CSS selector.
  6. Click save.

How to get search content css selector?

  1. Right click on the text.
  2. Click on inspect element
  3. Right click on the highlighted code.
  4. Go to copy-> copy selector.custom search extractor
  5. Paste this in the image content CSS selector.
  6. Click save.

Now you can check the search engine for this product. custom search extractor

As you can see, the components you mentioned in the search control panel are reflected in the search results.


muthali ganesh

Muthali loves writing about emerging technologies and easy solutions for complex tech issues. You can reach out to him through chat or by raising a support ticket on the left hand side of the page.