Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Apache Solr PHP Integration

You're reading from   Apache Solr PHP Integration Build a fully-featured and scalable search application using PHP to unlock the search functions provided by Solr with this book and ebook.

Arrow left icon
Product type Paperback
Published in Nov 2013
Publisher Packt
ISBN-13 9781782164920
Length 118 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jayant Kumar Jayant Kumar
Author Profile Icon Jayant Kumar
Jayant Kumar
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Apache Solr PHP Integration
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing and Integrating Solr and PHP 2. Inserting, Updating, and Deleting Documents from Solr FREE CHAPTER 3. Select Query on Solr and Query Modes (DisMax/eDisMax) 4. Advanced Queries – Filter Queries and Faceting 5. Highlighting Results Using PHP and Solr 6. Debug and Stats Component 7. Spell Check in Solr 8. Advanced Solr – Grouping, the MoreLikeThis Query, and Distributed Search Index

Index

A

  • accuracy variable / Solr configuration for spell check
  • adapters, Solarium
    • CurlAdapter / Solarium adapters
    • HttpAdapter / Solarium adapters
    • ZendHttp adapter / Solarium adapters
    • PeclHttp adapter / Solarium adapters
  • addDocument() function / Commit, rollback, and index optimization
  • addParam() function / Commit, rollback, and index optimization
  • addQuery() function / Grouping results by queries
  • addRollback() function / Commit, rollback, and index optimization
  • addSorts() function / Running a query using select configuration
  • addTag(String $tag) function / Creating filter query configuration
  • addTags(array $tags) function / Creating filter query configuration
  • autocomplete feature
    • implementing, PHP used / Implementing the autocomplete feature using PHP and Solr
    • implementing, Solr used / Implementing the autocomplete feature using PHP and Solr

B

  • boundaryScanner / Solr highlighting configuration

C

  • classname variable / Solr configuration for spell check
  • commitWithin parameter / Commit, rollback, and index optimization
  • Composer
    • installing / Installing Solarium
    • installing, at user level / Installing Solarium
    • installing, on global level / Installing Solarium
  • composer-setup.exe
    • URl, for downloading / Installing Solarium
  • coord / Solr relevance ranking
  • copyField section / The Solr schema
  • createFilterQuery() function / Executing filter queries
  • CurlAdapter / Solarium adapters

D

  • date
    • boosting, in eDisMax query / Date boosting in an eDisMax query
  • debug
    • executing, through PHP code / Executing debug through PHP code
  • DirectSolrSpellChecker implementation / Spell checker implementations available with Solr
  • DisMax query
    • about / DisMax and eDisMax query modes
    • executing / Executing queries using DisMax and eDisMax
  • distributed search
    • about / Distributed search
    • setting up / Setting up a distributed search
    • executing, PHP used / Executing a distributed search using PHP

E

  • eDisMax query
    • about / DisMax and eDisMax query modes
    • executing / Executing queries using DisMax and eDisMax
    • date, boosting / Date boosting in an eDisMax query
  • endpoints
    • about / More about endpoints
  • explainOther() function / Executing debug through PHP code

F

  • facet
    • by field / Facet by field
    • by query / Facet by query
    • multiquery / Facet by query
    • by range / Facet by range
    • by pivot / Facet by pivot
  • Faceting
    • about / Faceting
  • fast vector highlighter / Solr highlighting configuration
    • used, for highlighting / Highlighting using the fast vector highlighter
  • field
    • facet by / Facet by field
    • results, grouping by / Grouping results by fields
  • fieldNorm / Solr relevance ranking
  • fieldType entry / The Solr schema
  • fieldTypetext_general / The Solr schema
  • field variable / Solr configuration for spell check
  • FileBasedSpellChecker implementation / Spell checker implementations available with Solr
  • filter queries
    • about / Filter queries and their benefits, Executing filter queries
    • adding, to existing query / Executing filter queries
    • configuration, creating / Creating filter query configuration
  • formatter / Solr highlighting configuration
  • fragListBuilder / Solr highlighting configuration
  • fragmenter / Solr highlighting configuration
  • fragmentsBuilder / Solr highlighting configuration, Highlighting using the fast vector highlighter
  • FSTLookup / Implementing the autocomplete feature using PHP and Solr

G

  • getCorrectlySpelled() function / Running a spell check query using PHP
  • getExplainOther() function / Executing debug through PHP code
  • getField() method / Highlighting in Solr using PHP and Solarium
  • getFilterQuery(string $key) function / Executing filter queries
  • getNumFound() function / Creating a basic select query with sorting and return fields
  • getPhases() function / Executing debug through PHP code
  • getQuery() function / Running a query using select configuration
  • getResult() function / Highlighting in Solr using PHP and Solarium
  • getTiming() function / Executing debug through PHP code
  • goToPage() function / Re-using queries
  • group.field=<field_name> parameter / Grouping results by fields
  • group.field parameter / Grouping results by queries
  • group.limit parameter / Grouping results by fields
  • group.query parameter / Grouping results by queries

H

  • highlighting
    • different highlighting tags, used for different fields / Using different highlighting tags for different fields
    • fast vector highlighter used / Highlighting using the fast vector highlighter
  • HttpAdapter / Solarium adapters

I

  • idf / Solr relevance ranking
  • IndexBasedSpellChecker implementation / Spell checker implementations available with Solr
  • indexed attribute / The Solr schema
  • init() function / Re-using queries
  • installation
    • Solarium / Installing Solarium

J

  • jar start.jar option / Installing Solr
  • JaspellLookup / Implementing the autocomplete feature using PHP and Solr

L

  • Linux
    • Solr, installing / Installing Solr
  • LowerCaseFilterFactory filter / The Solr schema
  • Lucene index
    • URL / Running more like this query using PHP

M

  • master-slave
    • setting up / Setting up Solr master-slave
  • maxQueryFrequency variable / Solr configuration for spell check
  • mlt.count / Running more like this query using PHP
  • mlt.mindf / Running more like this query using PHP
  • mlt.mintf / Running more like this query using PHP
  • MoreLikeThis component / Running more like this query using PHP
  • more like this query
    • running, PHP used / Running more like this query using PHP
  • more like this tuning parameters
    • about / More like this tuning parameters
    • setMinimumTermFrequency() function / More like this tuning parameters
    • setMinimumWordLength() function / More like this tuning parameters
    • setMaximumWordLength() function / More like this tuning parameters
    • setMaximumQueryTerms() function / More like this tuning parameters
    • setMaximumNumberOfTokens() function / More like this tuning parameters
    • setBoost() function / More like this tuning parameters
    • setCount() function / More like this tuning parameters
    • setQueryFields() function / More like this tuning parameters
  • multivalued attribute / The Solr schema

N

  • name attribute / The Solr schema
  • name variable / Solr configuration for spell check

P

  • PeclHttp adapter / Solarium adapters
  • PHP
    • used, for executing ping query on Solr / Executing a ping query on Solr using PHP, Executing ping queries on Solr using PHP and Solarium library
    • used, for adding documents to Solr / Using PHP to add documents to the Solr index
    • used, for adding documents to Solr index / Using PHP to add documents to the Solr index
    • used, for updating documents to Solr / Updating documents in Solr using PHP
    • used, for deleting documents in Solr / Deleting documents in Solr using PHP
    • used, for highlighting in Solr / Highlighting in Solr using PHP and Solarium
    • used, for running spell check / Running a spell check query using PHP
    • used, for implementing autocomplete feature / Implementing the autocomplete feature using PHP and Solr
    • used, for running more like this query / Running more like this query using PHP
    • used, for executing distributed search / Executing a distributed search using PHP
    • used, for load balancing Solr queries / Load balancing Solr queries using PHP
  • PHP-Solr integration
    • about / Libraries available for PHP-Solr integration
  • ping query
    • executing on Solr, PHP used / Executing a ping query on Solr using PHP, Executing ping queries on Solr using PHP and Solarium library
    • executing on Solr, Solarium library used / Executing ping queries on Solr using PHP and Solarium library
  • pivot
    • facet by / Facet by pivot
  • positionIncrementGap attribute / The Solr schema
  • precisionStep attribute / The Solr schema

Q

  • query
    • select query creating, sorting used / Creating a basic select query with sorting and return fields
    • select query creating, return fields used / Creating a basic select query with sorting and return fields
    • running, select configuration used / Running a query using select configuration
    • re-using / Re-using queries
    • executing, DisMax used / Executing queries using DisMax and eDisMax
    • executing, eDisMax used / Executing queries using DisMax and eDisMax
    • alternatives / Advanced query parameters
    • facet by / Facet by query
    • results, grouping by / Grouping results by queries
  • queryNorm / Solr relevance ranking

R

  • range
    • facet by / Facet by range
  • regular highlighter / Solr highlighting configuration
  • removeField($fieldStr) function / Running a query using select configuration
  • removeSort($sortStr) function / Running a query using select configuration
  • required attribute / The Solr schema
  • results
    • grouping, by field / Grouping results by fields
    • grouping, by query / Grouping results by queries
  • RESULTSPERPAGE / Re-using queries

S

  • schema.xml file / The Solr schema
  • select configuration
    • used, for running query / Running a query using select configuration
  • select query
    • creating, sorting used / Creating a basic select query with sorting and return fields
    • creating, return fields used / Creating a basic select query with sorting and return fields
  • setAlternateField(string $field) function / Highlighting using the fast vector highlighter
  • setAuthentication(string $username, string $password) setting / More about endpoints
  • setBoost() function / More like this tuning parameters
  • setBoostFunctions() function / Executing queries using DisMax and eDisMax
  • setBoostFunctionsMult() function / Executing queries using DisMax and eDisMax, Date boosting in an eDisMax query
  • setCollateExtendedResults() function / Running a spell check query using PHP
  • setCount() function / More like this tuning parameters
  • setDefaultEndpoint(string $endpoint) setting / More about endpoints
  • setExtendedResults() function / Running a spell check query using PHP
  • setLimit(int $limit) function / Facet by field
  • setMaxAlternateFieldLength(int $length) function / Highlighting using the fast vector highlighter
  • setMaximumNumberOfTokens() function / More like this tuning parameters
  • setMaximumQueryTerms() function / More like this tuning parameters
  • setMaximumWordLength() function / More like this tuning parameters
  • setMinimumDocumentFrequency() function / More like this tuning parameters
  • setMinimumTermFrequency() function / More like this tuning parameters
  • setMinimumWordLength() function / More like this tuning parameters
  • setOffset(int $offset) function / Facet by field
  • setPhraseBigramFields() function / Executing queries using DisMax and eDisMax
  • setPhraseBigramSlop() function / Executing queries using DisMax and eDisMax
  • setPhraseTrigramFields() function / Executing queries using DisMax and eDisMax
  • setPhraseTrigramSlop() function / Executing queries using DisMax and eDisMax
  • setQuery() function / Creating a basic select query with sorting and return fields, Executing filter queries
  • setQueryDefaultField(String $field) function / Running a query using select configuration
  • setQueryDefaultOperator(String $operator) function / Running a query using select configuration
  • setQueryFields() function / More like this tuning parameters
  • setQuery function / Executing queries using DisMax and eDisMax
  • setRegexPattern(string $pattern) function / Highlighting using the fast vector highlighter
  • setRequireFieldMatch(boolean $require) function / Highlighting using the fast vector highlighter
  • setTagPostfix() function / Highlighting using the fast vector highlighter
  • setTimeout(int $timeout) setting / More about endpoints
  • setUsePhraseHighlighter(boolean $use) function / Highlighting using the fast vector highlighter
  • slop / Executing queries using DisMax and eDisMax
  • Solarium
    • about / Libraries available for PHP-Solr integration
    • installing / Installing Solarium
    • adapters / Solarium adapters
    • used, for highlighting in Solr / Highlighting in Solr using PHP and Solarium
  • Solr
    • about / Solr
    • installing / Installing Solr
    • installing, on Windows / Installing Solr
    • installing, on Linux / Installing Solr
    • starting, java -jar start.jar option used / Installing Solr
    • running, Tomcat configured / Configuring Tomcat to run Solr
    • ping query executing, PHP used / Executing a ping query on Solr using PHP, Executing ping queries on Solr using PHP and Solarium library
    • PHP-Solr integration, libraries for / Libraries available for PHP-Solr integration
    • PHP extension, URL / Libraries available for PHP-Solr integration
    • ping query executing, ping query used / Executing ping queries on Solr using PHP and Solarium library
    • query logs, checking / Checking Solr query logs
    • documents adding, PHP used / Using PHP to add documents to the Solr index
    • documents updating, PHP used / Updating documents in Solr using PHP
    • documents deleting, PHP used / Deleting documents in Solr using PHP
    • regular highlighter / Solr highlighting configuration
    • fast vector highlighter / Solr highlighting configuration
    • highlighting, PHP used / Highlighting in Solr using PHP and Solarium
    • highlighting, Solarium used / Highlighting in Solr using PHP and Solarium
    • relevance ranking / Solr relevance ranking
    • configuring, for spell check / Solr configuration for spell check
    • used, for implementing autocomplete feature / Implementing the autocomplete feature using PHP and Solr
    • master-slave, setting up / Setting up Solr master-slave
    • queries load balancing, PHP used / Load balancing Solr queries using PHP
  • Solr-PHP-client
    • URL / Libraries available for PHP-Solr integration
  • Solr index
    • sample documents, adding / Adding sample documents to the Solr index
    • documents adding, PHP used / Using PHP to add documents to the Solr index
  • Solr interface
    • debug, running on / Running debug on Solr interface
  • Solr schema
    • about / The Solr schema
  • sortMissingFirst attribute / The Solr schema
  • sortMissingLast attribute / The Solr schema
  • spell check
    • implementations / Spell checker implementations available with Solr
    • running, PHP used / Running a spell check query using PHP
  • spell check, implementations
    • DirectSolrSpellChecker implementation / Spell checker implementations available with Solr
    • IndexBasedSpellChecker implementation / Spell checker implementations available with Solr
    • FileBasedSpellChecker implementation / Spell checker implementations available with Solr
    • WordBreakSolrSpellChecker implementation / Spell checker implementations available with Solr
  • StandardTokenizerFactory / The Solr schema
  • statistics
    • enabling / The stats component
  • stats component
    • about / The stats component
  • StopFilterFactory filter / The Solr schema
  • stored attribute / The Solr schema
  • suggester() function / Implementing the autocomplete feature using PHP and Solr
  • SynonymFilterFactory filter / The Solr schema

T

  • tf / Solr relevance ranking
  • tf-idf model / Solr relevance ranking
  • thresholdTokenFrequency variable / Solr configuration for spell check
  • Tomcat
    • configuring, to run Solr / Configuring Tomcat to run Solr
  • TSTLookup / Implementing the autocomplete feature using PHP and Solr
  • type attribute / The Solr schema

U

  • uniqueKey section / The Solr schema

W

  • WFSTLookup / Implementing the autocomplete feature using PHP and Solr
  • Windows
    • Solr, installing / Installing Solr
  • WordBreakSolrSpellChecker implementation / Spell checker implementations available with Solr

Z

  • ZendHttp adapter / Solarium adapters
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image