public interface FTQueryResult extends DbQueryResult<FTQueryResult>
Modifier and Type | Method and Description |
---|---|
List<String> |
getHighlightStrings()
When using
FTQuery.RETURN_HIGHLIGHT_STRINGS , this method returns
the search strings parsed from the FT query. |
List<NoteIdWithScore> |
getMatchesWithScore()
Returns the sorted note ids of search matches with their search score (0-255).
|
Optional<IDTable> |
getNoteIds()
Returns an
IDTable of documents matching the search. |
int |
getNumDocs()
Returns the number of documents returned in the results, may be less than
getNumHits() if
Database.queryFTIndex(String, int, java.util.Set, java.util.Set, int, int)
is used with paging parameters. |
int |
getNumHits()
Returns the actual number of documents found for this search.
|
long |
getSearchDuration()
Returns the duration the search took in milliseconds
|
build, collectEntries, collectEntries, collectEntries, collectIds, collectIds, computeValues, computeValues, forEachDocument, getDocuments, getParentDatabase, size, sort
long getSearchDuration()
int getNumHits()
getNumDocs()
if Database.queryFTIndex(String, int, java.util.Set, java.util.Set, int, int)
is used with paging parameters.int getNumDocs()
getNumHits()
if
Database.queryFTIndex(String, int, java.util.Set, java.util.Set, int, int)
is used with paging parameters.Optional<IDTable> getNoteIds()
IDTable
of documents matching the search.getNoteIds
in interface DbQueryResult<FTQueryResult>
Optional
describing the IDTable if ftSearch method has been used or ftSearchExt has been called with
FTQuery.RETURN_IDTABLE
option (and we have any hits), or an empty one if it was notList<NoteIdWithScore> getMatchesWithScore()
List<String> getHighlightStrings()
FTQuery.RETURN_HIGHLIGHT_STRINGS
, this method returns
the search strings parsed from the FT query. E.g. for a
query "(greg* or west*) and higg*", the list contains
"greg*", "west*" and "higg*".Copyright © 2019–2021 HCL. All rights reserved.