createIndex method (DominoQuery - Java)

Creates an index (Domino view) that is optimized for DQL query terms.

Defined in

DominoQuery

Syntax

public void createIndex(String name, String field) throws NotesException

public void createIndex(String name, String field, boolean isvisible, boolean nobuild) throws NotesException

public void createIndex(String name, java.util.Vector fields) throws NotesException

public void createIndex(String name, java.util.Vector fields, boolean isvisible, boolean nobuild) throws NotesException

Parameters

IndexName

String. The name of the index to create. Use a name that doesn't conflict with the name of an existing view.

Field

Variant string or string array. The name of the field to be indexed.

IsVisible.

Boolean. Makes the view visible. If not specified, a hidden view is created using parentheses. For example, "myindex" becomes "(myindex)". If set to true, all users see the view created by the call when they open the database.

Nobuild

Boolean. Doesn't build the view, allowing for normal view processing to do so. All views created by createIndex are created with refresh options set to "Automatic". If not specified, the view created is built as part of the createIndex operation.

Returned value

None

Language cross-reference

CreateIndex method (NotesDominoQuery - LotusScript)