Vues :

Behavior:
How could I do the fulltext search with JAPI.

Solution:
Fulltext search via JAPI is possible, but you need to use the DialogSearch instead of the regular search. The fulltext search will be ignored with the regular search methode and return all datarecords from the file cabinet.
Here you see an example with the DialogSearch. (fc is the FileCabinet object):

IDialog[] MyDialogs = fc.getDialogsByType(DialogType.SEARCH);
IDialogDefinition MyDialogDefinition = fc.getDialogDefinition(MyDialogs[0]);
IDialogFieldSortOrder[] MyDialogFieldOrder = new DialogFieldSortOrder[0];
IDialogQuery MyDialogQuery = new DialogQuery(MyDialogDefinition, MyDialogFieldOrder, SearchMode.OR);
for (IDialogField MyDialogField : MyDialogDefinition.getDialogFields())
{
if (MyDialogField.getDbName().contains("Fulltext"))
{
MyDialogField.setValue("haribo");
}
}
MyDialogQuery.setSearchMode(SearchMode.AND);
MyDialogQuery.setDialogDefinition(MyDialogDefinition);
IResultList MyResultList = fc.dialogSearch(MyDialogQuery,false);
System.out.println("Teffer:" + MyResultList.getResultsCount());