Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

IFE uses ThinkingSphinx to communicate with the Sphinx full-text search. (Manual: http://sphinxsearch.com/docs/current.html)

Searches are performed using a query string that conforms to the sphinx query syntax and an optionally supplied options object.
All indexed fields of the respective index are searched, unless you narrow your search scope, for example by querying specific fields.
You may use all features the sphinx syntax provides. Grouping, boolean operators and many more.

Inhalt

Table of Contents
maxLevel2

...

To search within a specific field, add the field name prefixed by an \@ in your query (e.g. "\@name SomeName"TheName" to search for records where the name field matches 'TheName')

category

KeyField nameType

category_id

Long

name

String

title

String

description

String

shortDescription

String

uuid

UUID

flex_attributes

String

namespace

String

...

Code Block
languagejs
linenumberstrue
...
var filter = "*" + request.parameter("filter") + "*";

var filteredCategories = categories.find(filter, { limit: 5 }); // => [category0, category1, ...]
...

content

KeyField nameType
content_idLong
nameString
content_typeString
bodyString
matcherString
namespaceString
tagsString
flex_attributesString

...

Code Block
languagejs
linenumberstrue
var entryContents = contents.find('@flex_attributes "rhino.catalog.entryName:' + referencedContent.name + '" "rhino.catalog.entryType:content"', { limit : 100 });
    
if (entryContents.length > 0) {

  [...]

}

customer

KeyField nameType
customer_idLong
loginString
display_nameString
emailString
activeBoolean
flex_attributesString

...

Code Block
languagejs
linenumberstrue
... 
customers.find('alice') // => [customer0, customer1, ...]
...

line_item

KeyField nameType
descriptionString
backendUuidUUID
flex_attributesString

Example


medium

KeyField nameType
medium_idLong
nameString
file_nameString
tagsString
kindString
namespaceString
flex_attributesString

Example


order

KeyField nameType
uuidUUID
order_idLong
itemUuidUUID
backendUuidUUID
itemBackendUuidUUID
billing_address_nameString
billing_address_first_nameString
billing_address_emailString
billing_address_zipString
shipping_address_nameString
shipping_address_first_nameString
shipping_address_zipString
shipping_address_emailString
voucherString
campaignString
historyString
portalString
statusString
financeString
supportString
bookingString
productionString
customer_nameString
payment_modeString
flex_attributesString

Example



namespace

KeyField nameType
package_idLong
titleSring

...

Code Block
languagejs
linenumberstrue
... 
namespaces.find('124') 
...

product

KeyField nameType
product_idLong
nameString
name1String
name2String
descriptionString
format1String
format2String
tagsString
typString
namespaceString
categoryString
eanString
flex_attributesString
custom_urlString
uuidUUID
skuString

...

Code Block
languagejs
linenumberstrue
...
//search for products with wildcard enabled
var p = products.find(args[0], args[1], true);
...

Common options

The optional options object has common settings that are applicable for all JSMA find methods:

Option limit:integer (Default: 20)

The maximum amount of records to fetch

Option page:integer (Default: 1)

Records are paginated. Sets the page to retrieve.