import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; export declare const searchWordStatues: readonly ["begin", "ready", "deleted"]; export type searchWordStatusType = typeof searchWordStatues[number]; /** * Search word represents a single word that appears in any document. * The search runs through the documents when requested first time. * Index will start building from the recent to the first document. * * The reason this exists is, this will only index what was searched. * And cache will remain in the system for couple of days. And it will * also be updated daily. * * If no body searches for this item again, this keyword will be removed * to make up extra space. */ export default class SearchWord { wordID: number; word: string; dateCreated: DateTime; dateUpdated: DateTime; expires?: DateTime; status: searchWordStatusType; recentID: number; firstID: number; indexes: SearchWordIndex[]; } export declare class SearchWordIndex { wordID: number; fileContentID: number; /** * First two bytes represents the first word occurrence (not character index) in the document. * Last two bytes represents how many times it occurs in the document. * This is based on the fact that import words will appear in the title or the first paragraph * of the document. */ rank: number; word: SearchWord; } //# sourceMappingURL=SearchWord.d.ts.map