Search Engines: Best Practice

Post on 29-Jul-2015

265 views 3 download

Tags:

Transcript of Search Engines: Best Practice

SEARCH ENGINES:BEST PRACTICE

BY YULIYA PRACH“EPAM SYSTEMS”

8 BASIC PRINCIPLES OF EFFECTIVE ON-SITE SEARCH

1) Search Box Prominence

2) Search Box Text

3) High-Quality Thumbnails in Search Results

4) Auto Suggestion and Spell Correction

5) Fuzzy Matching

6) Grid vs. List View

7) Quick Preview

8) Reviews and Rating Displayed in Search Result

• INSTALL SOLR

• APACHE SOLR SEARCH

• SEARCH API SOLR SEARCH

Solr

Open source enterprise search platform

Written in Java

Solr 4 adds NoSQL features

Near Real Time Search

Optimistic Concurrency Control

Atomic updates

SOLR

Big community

Take off the workload of database

Response in csv, xml, json, php ...

Spellchecking

Results Grouping

Decision tree faceting (Pivot facets)

Hosting Support (websolr.com, solrhq.com)

No Split Brain situations

Need a schema

No Ability to search across multiple indexes

No Support for multiple document types per schema

SOLR

HOW TO INSTALL SOLR?

SUDO APT-GET INSTALL OPENJDK-7-JRE << UBUNTU(MINT)

SU -C "YUM INSTALL JAVA-1.7.0-OPENJDK” << ORACLE/CENTOS/SUSE/FEDORA

2) INSTALLING SOLR

1) DOWNLOADING AND INSTALLING JAVA

WGET HTTP://ARCHIVE.APACHE.ORG/DIST/LUCENE/SOLR/4.10.3/SOLR-4.10.3.TGZ

TAR -XVF SOLR-4.10.3.TGZ

/”PATH TO YOUR UNCOMPRESSED SOLR”/BIN/SOLR START

3) CHECKING http://localhost:8983/solr

4) COPY FILES FROM /”module_name”/solr-conf/solr-4.x TO solr/collection1/conf

APACHE SOLR SEARCHVS

SEARCH API SOLR SEARCH

INTEGRATING SOLR TO DRUPAL

Apachesolr Search Search API Solr Serch

• Needs a custom module for adding fields to index

• Indexes only nodes (by default)• To add some useful things needs a

custom written module• Stores lots of data and return it in

response• Integrates into default search form

• Adding fields to index in admin panel

• Indexes entities• A lot of modules on Drupal.org to

extend its functionality• Stores only ID (to load data hits

database)• Creating a search page and search

form requires additional modules or views

APACHESOLR SEARCH

SEARCH API SOLR SEARCH

FACETED SEARCHFacet API & Facet Slider (Apache Solr Search)

Search facets & Search API ranges (Search API Solr Search)

EXTENDING SEARCH

Search API Pages & Search API Page Block

Search API Autocomplete/Apache Solr Autocomplete

Rich Snippets

Search Api Live Result

Searchcloud Block

Display suite

Fuzzy Search

SEARCH PAGE EXAMPLE

Elastic Search Connector

Elastic Search

Schemaless

Rapid feature development

Allows multiple types of documents per index

Aggregations

Percolator (prospective search)

Prone to 'Split Brain' Situations

Poor documentation

Some missing features (Results Grouping, Decision Tree Faceting)

Only json response

Elastic Search

INSTALLING ELASTICSEARCH

INSTALLING ELASTICSEARCH

1) Download and install the latest version of OPENJDK

2) Download needed version from http://www.elasticsearch.org/overview/elkdownloads/

3) Unzip it in the destination folder

4) Run bin/elasticsearch in Linux or bin/elasticsearch.bat in Windows

5) Go to localhost:9200 to check whether it works

ELASTICSEARCH CONNECTOR

THANKS FORYOUR ATTENTION!

E-mail: Yuliya_Prach@epam.comSkype: yulichka_lviv