View
 

Advanced Searching

All networks with a Pay to Play Plan have a SphinxSearch fulltext search engine embedded. Whenever you search using an API function you can call all kinds of advanced queries.

 

Usage Examples

 

For a full list of available options browse the SphinxSearch Documentation

 

Boolean queries

 

  • explicit operator AND:
    hello & world
    
  • operator OR:
    hello | world
    
  • operator NOT:
    hello -world
    hello !world
    
  • grouping:
    ( hello world )
    

 

There always is implicit AND operator, so "hello world" query actually means "hello & world".

 

OR operator precedence is higher than AND, so "looking for cat | dog | mouse" means "looking for ( cat | dog | mouse )" and not "(looking for cat) | dog | mouse".

Queries like "-dog", which implicitly include all documents from the collection, can not be evaluated. This is both for technical and performance reasons.

 

 

Extended Queries

 

The following special operators and modifiers can be used when using the extended matching mode:

  • operator OR:
    hello | world
    
  • operator NOT:
    hello -world
    hello !world
    
  • field search operator:
    @title hello @body world
    
  • field position limit modifier:
    @body[50] hello
    
  • multiple-field search operator:
    @(title,body) hello world
    
  • all-field search operator:
    @* hello
    
  • phrase search operator:
    "hello world"
    
  • proximity search operator:
    "hello world"~10
    
  • quorum matching operator:
    "the world is a wonderful place"/3
    
  • strict order operator (aka operator "before"):
    aaa << bbb << ccc
    
  • exact form modifier
    raining =cats and =dogs
    
  • field-start and field-end modifier
    ^hello world$