FullTextSearchManager.CreateList

Syntax:

CreateList(<SearchString>, <PortionSize>)

Parameters:

<SearchString> (optional)

Type: String.
Search string (contains both words to find and search operators - AND, OR, NOT, NEAR, brackets, quotation marks). Searches can be performed using several words, search operators, or the exact phrase.
The following search operators can be used in the input string:
    • AND or #) - search for all words; example: "record AND document" - description must contain both "posting" and "document" (taking morphology into account);
    • OR or | or ,) - search for at least one word from the list; example: "record OR document" - Description must contain at least one of the words - either "entry" or "document";
    • NOT or -) - searching for text containing the first word, but lacking the second; example: "closing NOT month" - all items containing "closing", but without the word "month" will be found. "~" cannot be used at the beginning of the string;
    • NEAR/[+/-]n - search for data containing specified words in one property taking morphology into account at a distance of n words between words.
    • Sign specifies the direction for search from first word to second word ("+" – after first word; "-" – before first word).
    • If the sign is not specified, then there will be found data containing stated words at the distance of n words from each other. Word order doesn't matter.
    • "hairdrier NEAR/3 air" - will find data, where the "air" is not further than 3 words before or after the word "hairdrier";
    • hairdrier NEAR/+3 air - will find data, where the "air" is not further than 3 words after the word "hairdrier";
    • hairdrier NEAR/-3 air - will find data, where the "air" s not further than 3 words before the word "hairdrier";
    • NEAR - simplified distance operator: both words are located no further than 8 words away from each other; example: "posting NEAR document";
    • "" (text in quotation marks) - searches for exact phrase, with account taken of morphology, example: "document posting" is equivalent to: posting /1 document;
    • () - word grouping (any number of nesting levels); example: "(posting | statement) # (of account, document)";
    • * - search using a wild card (replacing the end of the word). More than 1 significant character must be entered, example: "docu*" - finds "document", "documentation", "documentary", etc.;
    • # - fuzzy search for words containing a defined number of differences from the specified word (if not specified, t = 1); example: query "#System" will find "systam", "syftem"; query "System#2" will find "sittem", "cyctem";
    • ! - search with account taken of synonyms in Russian, English and Ukrainian languages. "!" is placed before the relevant word; example: searching "!red tile" will also find "scarlet tile" and "coralline tile".

If no operators are specified (words entered with spaces), the program will search for all the words from the query using the AND operator.
Note 1: The AND, OR, NOT, and NEAR operators must be entered in upper case only.
Note 2: Operators must not be used on their own (at the beginning of the search string). For example, it is not possible to select all the chapters without the specified text.
Limitation. When using fuzzy or area search ("*" and "#" operators) several words may be found. The total number of found words can not exceed 300.

<PortionSize> (optional)

Type: Number.
Number of results in one portion. For example, 30.
Default value: 20.

Returned value:

Type: FullTextSearchList.

Description:

Creates FullTextSearchList object. After creating call method FirstPart - in order to obtain search results.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

If the full-text search mode is not allowed, using the method will call an exception.

    

1C:Enterprise Developer's Community