Domino 9 und frühere Versionen > ND8: Entwicklung

view.FTSearch maximale Dokumentenanzahl

(1/3) > >>

jo@chim:
Gibt es eigentlich auch für die Methode view.FTSearch einen maximalen Rückgabewert, adäquat der 5.000 Docs bei db.FTSearch?

koehlerbv:
Aus der DesignerHelp:

--- Zitat ---This method returns a maximum of 5,000 documents by default. The Notes.ini variable FT_MAX_SEARCH_RESULTS overrides this limit for indexed databases or databases that are not indexed but that are running in an agent on the client. For a database that is not indexed and is running in an agent on the server, you must set the TEMP_INDEX_MAX_DOC Notes.ini variable as well. The absolute maximum is 2,147,483,647.
--- Ende Zitat ---

Bernhard

jo@chim:
Hast Du ne andere Designer Help oder sollte ich meine Brille putzen? (Release 8.5.3)


--- Zitat ---FTSearch method
Conducts a full-text search on all documents in a view and filters the view so it represents only those documents that match the full-text query. This method does not find word variants.

Defined in
NotesView

Syntax
numDocs& = notesView.FTSearch( query$, maxDocs% )

Parameters
query$

String. The full-text query. See below.

maxDocs%

Integer. The maximum number of documents you want returned from the search. If you want to receive all documents that match the query, specify 0.

Return value
numDocs&

Long. The number of documents in the view after the search. Each of these documents matches the query$.

Usage
After calling FTSearch, you can use the regular NotesView methods to navigate the result, which is a subset of the documents in the view. If the database is not full-text indexed, the documents in the subset are in the same order as they are in the original view. However, if the database is full-text indexed, the documents in the subset are sorted into descending order of relevance. GetFirstDocument returns the first document in the subset, GetLastDocument returns the last document, and so on.

Use the Clear method to clear the full-text search filtering. The NotesView methods now navigate to the full set of documents in the view.

If the database is not full-text indexed, this method works, but less efficiently. To test for an index, use the IsFTIndexed property. To create an index on a local database, use the UpdateFTIndex method.

Query syntax
To search for a word or phrase, enter the word or phrase as is, except that search keywords must be enclosed in quotes. Remember to escape quotes if you are inside a literal.

Wildcards, operators, and other syntax are permitted. For the complete syntax rules, see "Refining a search query using operators" in Lotus Notes Help. Search for "query syntax" in the Domino Designer Eclipse help system or information center (for example, http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp), both of which include Lotus Notes.


--- Ende Zitat ---

koehlerbv:
Sorry, ich hatte Dein "view" überlesen. Wie aber auch bei der FT-Search des Frontends kannst Du das Standard-Maximum überschreiben, insofern gilt mein Zitat aus Deiner DesignerHelp ;-) aus NotesDatabase.FTSearch auch für die NotesView.

Bernhard

jo@chim:
Danke für die Info...
Die Änderung der Variable FT_MAX_SEARCH_RESULTS in der notes.ini wirkt für alle Datenbanken, auch die die nicht lokal, sondern auf dem Server laufen - habe ich das richtig verstanden?

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln