Navigation  
 My Account    Support    FAQs    Forums 
 NFOs    Posts    Files    Images    Search 
 
Username Duration
No Account?
Sign up now!
Password
Lost : Password | Username
  Search alt.binaries for Posts and File Sets  
Search Files
Search
Subject
Category
Newsgroup
Date From until
Set size From To
Files in set From To
Options
Search Type
NFOs
Complete Sets
Posts Information
Output format
  

Ngindex Search Syntax

The systax of the search depends on what mode you set. The mode can be set using the "Search Type" dropdown. The following types of search are supported:
  • Any Of Words: matches any of the query words (default mode)
  • All Of Words: matches all query words
  • Exact Phrase: matches query as a phrase, requiring perfect match (all words in the order specified)
  • Extended: matches query as an expression in Sphinx internal query language (see below for more info)

Extended query syntax

Extended queries allow the following special operators to be used:

  * operator OR:
    hello | world

  * operator NOT:
    hello -world
    hello !world

  * phrase search operator:
    "hello world"

  * proximity search operator:
    "hello world"~10

Here's an example query which uses all these operators:

Example: Extended query example
    "hello world" "example program"~5 python -(php|perl)

There always is implicit AND operator, so "hello world" means that both "hello" and "world" must be present in matching document.

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".

Proximity distance is specified in words, adjusted for word count, and applies to all words within quotes. For instance, "cat dog mouse"~5 query means that there must be less than 8-word span which contains all 3 words, ie. "CAT aaa bbb ccc DOG eee fff MOUSE" document will not match this query, because this span is exactly 8 words long.

Nested brackets, as in queries like
    aaa | ( bbb ccc | ( ddd eee ) )

are not allowed yet, but this will be fixed.

Negation (ie. operator NOT) is only allowed on top level and not within brackets (ie. groups). This isn't going to change, because supporting nested negations would make phrase ranking implementation way too complicated.

©Copyright ngindex.com 2006
Terms and conditions :: Privacy Policy :: :: U.S.C. 2257 Compliance :: Show Dates