[{"data":1,"prerenderedAt":3111},["ShallowReactive",2],{"navigation":3,"\u002Fextensions\u002Fengines":340,"\u002Fextensions\u002Fengines-surround":3106},{"3.x":4,"2.x":236},[5,32,61,103,125,151,169,207],{"title":6,"icon":7,"path":8,"stem":9,"children":10,"page":31},"Getting Started","i-heroicons-star","\u002Fgetting-started","1.getting-started",[11,15,19,23,27],{"title":12,"path":13,"stem":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":16,"path":17,"stem":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":20,"path":21,"stem":22},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",{"title":24,"path":25,"stem":26},"Configuration","\u002Fgetting-started\u002Fconfiguration","1.getting-started\u002F4.configuration",{"title":28,"path":29,"stem":30},"Upgrade guide","\u002Fgetting-started\u002Fupgrade-guide","1.getting-started\u002F5.upgrade-guide",false,{"title":33,"icon":34,"path":35,"stem":36,"children":37,"page":31},"Resources","i-heroicons-document-text","\u002Fresources","2.resources",[38,41,45,49,53,57],{"title":33,"path":39,"stem":40},"\u002Fresources\u002Fresources","2.resources\u002F1.resources",{"title":42,"path":43,"stem":44},"Fields","\u002Fresources\u002Ffields","2.resources\u002F2.fields",{"title":46,"path":47,"stem":48},"Relationships","\u002Fresources\u002Frelations","2.resources\u002F3.relations",{"title":50,"path":51,"stem":52},"Validation","\u002Fresources\u002Fvalidation","2.resources\u002F4.validation",{"title":54,"path":55,"stem":56},"Perimeter","\u002Fresources\u002Fperimeter","2.resources\u002F5.perimeter",{"title":58,"path":59,"stem":60},"Limits","\u002Fresources\u002Flimits","2.resources\u002F6.limits",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":31},"Search","i-heroicons-magnifying-glass","\u002Fsearch","3.search",[67,71,75,79,83,87,91,95,99],{"title":68,"path":69,"stem":70},"Search overview","\u002Fsearch\u002Foverview","3.search\u002F1.overview",{"title":72,"path":73,"stem":74},"Search filters","\u002Fsearch\u002Ffilters","3.search\u002F2.filters",{"title":76,"path":77,"stem":78},"Sorts and selects","\u002Fsearch\u002Fsorts-and-selects","3.search\u002F3.sorts-and-selects",{"title":80,"path":81,"stem":82},"Includes and aggregates","\u002Fsearch\u002Fincludes-and-aggregates","3.search\u002F4.includes-and-aggregates",{"title":84,"path":85,"stem":86},"Scopes and instructions","\u002Fsearch\u002Fscopes-and-instructions","3.search\u002F5.scopes-and-instructions",{"title":88,"path":89,"stem":90},"Text search","\u002Fsearch\u002Ftext-search","3.search\u002F6.text-search",{"title":92,"path":93,"stem":94},"Search engines","\u002Fsearch\u002Fsearch-engines","3.search\u002F7.search-engines",{"title":96,"path":97,"stem":98},"Searching outside HTTP","\u002Fsearch\u002Foutside-http","3.search\u002F8.outside-http",{"title":100,"path":101,"stem":102},"Totals","\u002Fsearch\u002Ftotals","3.search\u002F9.totals",{"title":104,"icon":105,"path":106,"stem":107,"children":108,"page":31},"Writing","i-heroicons-pencil-square","\u002Fwriting","4.writing",[109,113,117,121],{"title":110,"path":111,"stem":112},"Mutate","\u002Fwriting\u002Fmutate","4.writing\u002F1.mutate",{"title":114,"path":115,"stem":116},"Writing relations","\u002Fwriting\u002Frelations","4.writing\u002F2.relations",{"title":118,"path":119,"stem":120},"Versioned rows","\u002Fwriting\u002Fversioned-rows","4.writing\u002F3.versioned-rows",{"title":122,"path":123,"stem":124},"Deleting and restoring","\u002Fwriting\u002Fdeleting","4.writing\u002F4.deleting",{"title":126,"icon":127,"path":128,"stem":129,"children":130,"page":31},"Actions and Metrics","i-heroicons-bolt","\u002Factions-and-metrics","5.actions-and-metrics",[131,135,139,143,147],{"title":132,"path":133,"stem":134},"Actions","\u002Factions-and-metrics\u002Factions","5.actions-and-metrics\u002F1.actions",{"title":136,"path":137,"stem":138},"Queued Actions","\u002Factions-and-metrics\u002Fqueued-actions","5.actions-and-metrics\u002F2.queued-actions",{"title":140,"path":141,"stem":142},"Confirmation","\u002Factions-and-metrics\u002Fconfirmation","5.actions-and-metrics\u002F3.confirmation",{"title":144,"path":145,"stem":146},"Metrics","\u002Factions-and-metrics\u002Fmetrics","5.actions-and-metrics\u002F4.metrics",{"title":148,"path":149,"stem":150},"Exports","\u002Factions-and-metrics\u002Fexports","5.actions-and-metrics\u002F5.exports",{"title":152,"icon":153,"path":154,"stem":155,"children":156,"page":31},"Authorization","i-heroicons-lock-closed","\u002Fauthorization","6.authorization",[157,161,165],{"title":158,"path":159,"stem":160},"Policies","\u002Fauthorization\u002Fpolicies","6.authorization\u002F1.policies",{"title":162,"path":163,"stem":164},"Gates","\u002Fauthorization\u002Fgates","6.authorization\u002F2.gates",{"title":166,"path":167,"stem":168},"Decision Cache","\u002Fauthorization\u002Fdecision-cache","6.authorization\u002F3.decision-cache",{"title":170,"icon":171,"path":172,"stem":173,"children":174,"page":31},"Digging Deeper","i-heroicons-list-bullet","\u002Fdigging-deeper","7.digging-deeper",[175,179,183,187,191,195,199,203],{"title":176,"path":177,"stem":178},"Details","\u002Fdigging-deeper\u002Fdetails","7.digging-deeper\u002F1.details",{"title":180,"path":181,"stem":182},"Events and Hooks","\u002Fdigging-deeper\u002Fevents-and-hooks","7.digging-deeper\u002F2.events-and-hooks",{"title":184,"path":185,"stem":186},"Custom Responses","\u002Fdigging-deeper\u002Fresponses","7.digging-deeper\u002F3.responses",{"title":188,"path":189,"stem":190},"OpenAPI Documentation","\u002Fdigging-deeper\u002Fopenapi","7.digging-deeper\u002F4.openapi",{"title":192,"path":193,"stem":194},"Precognition","\u002Fdigging-deeper\u002Fprecognition","7.digging-deeper\u002F5.precognition",{"title":196,"path":197,"stem":198},"Artisan Commands","\u002Fdigging-deeper\u002Fartisan","7.digging-deeper\u002F6.artisan",{"title":200,"path":201,"stem":202},"Use with AI","\u002Fdigging-deeper\u002Fai-skill","7.digging-deeper\u002F7.ai-skill",{"title":204,"path":205,"stem":206},"Translations","\u002Fdigging-deeper\u002Ftranslations","7.digging-deeper\u002F8.translations",{"title":208,"icon":209,"path":210,"stem":211,"children":212,"page":31},"Extensions","i-heroicons-puzzle-piece","\u002Fextensions","8.extensions",[213,216,220,224,228,232],{"title":208,"path":214,"stem":215},"\u002Fextensions\u002Foverview","8.extensions\u002F1.overview",{"title":217,"path":218,"stem":219},"Query extensions","\u002Fextensions\u002Fqueries","8.extensions\u002F2.queries",{"title":221,"path":222,"stem":223},"Engine extensions","\u002Fextensions\u002Fengines","8.extensions\u002F3.engines",{"title":225,"path":226,"stem":227},"Authorization extensions","\u002Fextensions\u002Fauthorization","8.extensions\u002F4.authorization",{"title":229,"path":230,"stem":231},"Route and write extensions","\u002Fextensions\u002Froutes-and-writes","8.extensions\u002F5.routes-and-writes",{"title":233,"path":234,"stem":235},"Response and check extensions","\u002Fextensions\u002Fresponses-and-checks","8.extensions\u002F6.responses-and-checks",[237,248,270,293,330],{"title":6,"icon":7,"path":238,"stem":239,"children":240,"page":31},"\u002F2.x\u002Fgetting-started","2.x\u002F1.getting-started",[241,244],{"title":16,"path":242,"stem":243},"\u002F2.x\u002Fgetting-started\u002Finstallation","2.x\u002F1.getting-started\u002F1.installation",{"title":245,"path":246,"stem":247},"Upgrade Guide","\u002F2.x\u002Fgetting-started\u002Fupgrade-guide","2.x\u002F1.getting-started\u002F2.upgrade-guide",{"title":249,"icon":250,"path":251,"stem":252,"children":253,"page":31},"Endpoints","i-heroicons-arrow-uturn-left","\u002F2.x\u002Fendpoints","2.x\u002F2.endpoints",[254,257,260,263,266],{"title":176,"path":255,"stem":256},"\u002F2.x\u002Fendpoints\u002Fdetails","2.x\u002F2.endpoints\u002F1.details",{"title":62,"path":258,"stem":259},"\u002F2.x\u002Fendpoints\u002Fsearch","2.x\u002F2.endpoints\u002F2.search",{"title":110,"path":261,"stem":262},"\u002F2.x\u002Fendpoints\u002Fmutate","2.x\u002F2.endpoints\u002F3.mutate",{"title":132,"path":264,"stem":265},"\u002F2.x\u002Fendpoints\u002Factions","2.x\u002F2.endpoints\u002F4.actions",{"title":267,"path":268,"stem":269},"Delete","\u002F2.x\u002Fendpoints\u002Fdelete","2.x\u002F2.endpoints\u002F5.delete",{"title":33,"icon":34,"path":271,"stem":272,"children":273,"page":31},"\u002F2.x\u002Fresources","2.x\u002F3.resources",[274,278,282,285,289],{"title":275,"path":276,"stem":277},"Basics","\u002F2.x\u002Fresources\u002Fbasics","2.x\u002F3.resources\u002F1.basics",{"title":279,"path":280,"stem":281},"Exposed Data","\u002F2.x\u002Fresources\u002Fexposed-data","2.x\u002F3.resources\u002F2.exposed-data",{"title":46,"path":283,"stem":284},"\u002F2.x\u002Fresources\u002Frelationships","2.x\u002F3.resources\u002F3.relationships",{"title":286,"path":287,"stem":288},"Validations","\u002F2.x\u002Fresources\u002Fvalidations","2.x\u002F3.resources\u002F4.validations",{"title":290,"path":291,"stem":292},"Interactions","\u002F2.x\u002Fresources\u002Finteractions","2.x\u002F3.resources\u002F5.interactions",{"title":170,"icon":171,"path":294,"stem":295,"children":296,"page":31},"\u002F2.x\u002Fdigging-deeper","2.x\u002F4.digging-deeper",[297,300,304,307,311,315,319,323,327],{"title":132,"path":298,"stem":299},"\u002F2.x\u002Fdigging-deeper\u002Factions","2.x\u002F4.digging-deeper\u002F1.actions",{"title":301,"path":302,"stem":303},"Hooks","\u002F2.x\u002Fdigging-deeper\u002Fhooks","2.x\u002F4.digging-deeper\u002F2.hooks",{"title":162,"path":305,"stem":306},"\u002F2.x\u002Fdigging-deeper\u002Fgates","2.x\u002F4.digging-deeper\u002F3.gates",{"title":308,"path":309,"stem":310},"Authorizations","\u002F2.x\u002Fdigging-deeper\u002Fauthorizations","2.x\u002F4.digging-deeper\u002F4.authorizations",{"title":312,"path":313,"stem":314},"Full Text Search","\u002F2.x\u002Fdigging-deeper\u002Ffull-text-search","2.x\u002F4.digging-deeper\u002F5.full-text-search",{"title":316,"path":317,"stem":318},"Instructions","\u002F2.x\u002Fdigging-deeper\u002Finstructions","2.x\u002F4.digging-deeper\u002F6.instructions",{"title":320,"path":321,"stem":322},"Responses","\u002F2.x\u002Fdigging-deeper\u002Fresponses","2.x\u002F4.digging-deeper\u002F7.responses",{"title":324,"path":325,"stem":326},"Documentation","\u002F2.x\u002Fdigging-deeper\u002Fdocumentation","2.x\u002F4.digging-deeper\u002F8.documentation",{"title":192,"path":328,"stem":329},"\u002F2.x\u002Fdigging-deeper\u002Fprecognition","2.x\u002F4.digging-deeper\u002F9.precognition",{"title":331,"icon":332,"path":333,"stem":334,"children":335,"page":31},"Integrations","i-lucide-puzzle","\u002F2.x\u002Fintegrations","2.x\u002F5.integrations",[336],{"title":337,"path":338,"stem":339},"Flutter","\u002F2.x\u002Fintegrations\u002Fflutter","2.x\u002F5.integrations\u002F1.flutter",{"id":341,"title":221,"body":342,"description":3098,"extension":3099,"links":3100,"meta":3101,"navigation":614,"path":222,"seo":3102,"sitemap":3103,"stem":223,"updatedAt":3104,"__hash__":3105},"docs3x\u002F8.extensions\u002F3.engines.md",{"type":343,"value":344,"toc":3083},"minimark",[345,374,379,389,1099,1167,1172,1309,1313,1318,1504,1565,1569,1604,1608,1684,1688,1697,2174,2185,2252,2256,2289,2293,2356,2359,2428,2432,2446,2711,2735,2739,2745,2902,2919,2928,3017,3079],[346,347,348,349,353,354,357,358,361,362,365,366,369,370,373],"p",{},"Three kinds act on the searches that run on a search engine through ",[350,351,352],"code",{},"ScoutEngine",": ",[350,355,356],{},"RestrictsEngineQueries",", ",[350,359,360],{},"DeclaresIndexAttributes"," and ",[350,363,364],{},"ProvidesEngineProfiles",". They throw ",[350,367,368],{},"Lomkit\\Rest\\Exceptions\\InvalidEngineExtensionException",", which names the extension by its name and its class. See ",[371,372,92],"a",{"href":93}," for the engine searches themselves.",[375,376,378],"h2",{"id":377},"restricting-engine-searches","Restricting engine searches",[346,380,381,384,385,388],{},[350,382,383],{},"RestrictsEngineQueries::restrictEngine(EngineRestrictionContext $context)"," restricts each engine query of a resource. Here, the tenant extension of ",[371,386,217],{"href":387},"\u002Fextensions\u002Fqueries#restricting-queries"," also restricts the engine, on an attribute that it declares:",[390,391,397],"pre",{"className":392,"code":393,"filename":394,"language":395,"meta":396,"style":396},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use Lomkit\\Rest\\Extensions\\Contexts\\EngineRestrictionContext;\nuse Lomkit\\Rest\\Extensions\\Contexts\\IndexAttributesContext;\nuse Lomkit\\Rest\\Extensions\\Contexts\\RestrictionContext;\nuse Lomkit\\Rest\\Extensions\\Extension;\nuse Lomkit\\Rest\\Extensions\\Kinds\\DeclaresIndexAttributes;\nuse Lomkit\\Rest\\Extensions\\Kinds\\RestrictsEngineQueries;\nuse Lomkit\\Rest\\Extensions\\Kinds\\RestrictsQueries;\nuse Lomkit\\Rest\\Fields\\Integer;\n\nfinal class TenantExtension extends Extension implements DeclaresIndexAttributes, RestrictsEngineQueries, RestrictsQueries\n{\n    public function __construct(private readonly CurrentTenant $tenant) {}\n\n    #[\\Override]\n    public static function name(): string\n    {\n        return 'tenant';\n    }\n\n    #[\\Override]\n    public function restrict(RestrictionContext $context): void\n    {\n        \u002F\u002F the SQL restriction, see Query extensions\n    }\n\n    #[\\Override]\n    public function indexAttributes(IndexAttributesContext $context): array\n    {\n        return [Integer::make('tenant_id')];\n    }\n\n    #[\\Override]\n    public function restrictEngine(EngineRestrictionContext $context): void\n    {\n        if ($context->rowsRestrictedInSql) {\n            return;\n        }\n\n        if ($context->user === null) {\n            $context->query->matchNothing();\n\n            return;\n        }\n\n        $context->query->where('tenant_id', '=', $this->tenant->id());\n    }\n}\n","Vendor\u002FTenancy\u002FTenantExtension.php","php","",[350,398,399,436,462,488,510,536,561,587,609,616,653,659,696,701,712,731,737,755,761,766,775,800,805,812,817,822,831,854,859,887,892,897,906,928,933,955,963,969,974,996,1017,1022,1029,1034,1039,1088,1093],{"__ignoreMap":396},[400,401,404,408,412,416,419,421,423,425,428,430,433],"span",{"class":402,"line":403},"line",1,[400,405,407],{"class":406},"sbssI","use",[400,409,411],{"class":410},"sTEyZ"," Lomkit",[400,413,415],{"class":414},"sMK4o","\\",[400,417,418],{"class":410},"Rest",[400,420,415],{"class":414},[400,422,208],{"class":410},[400,424,415],{"class":414},[400,426,427],{"class":410},"Contexts",[400,429,415],{"class":414},[400,431,432],{"class":410},"EngineRestrictionContext",[400,434,435],{"class":414},";\n",[400,437,439,441,443,445,447,449,451,453,455,457,460],{"class":402,"line":438},2,[400,440,407],{"class":406},[400,442,411],{"class":410},[400,444,415],{"class":414},[400,446,418],{"class":410},[400,448,415],{"class":414},[400,450,208],{"class":410},[400,452,415],{"class":414},[400,454,427],{"class":410},[400,456,415],{"class":414},[400,458,459],{"class":410},"IndexAttributesContext",[400,461,435],{"class":414},[400,463,465,467,469,471,473,475,477,479,481,483,486],{"class":402,"line":464},3,[400,466,407],{"class":406},[400,468,411],{"class":410},[400,470,415],{"class":414},[400,472,418],{"class":410},[400,474,415],{"class":414},[400,476,208],{"class":410},[400,478,415],{"class":414},[400,480,427],{"class":410},[400,482,415],{"class":414},[400,484,485],{"class":410},"RestrictionContext",[400,487,435],{"class":414},[400,489,491,493,495,497,499,501,503,505,508],{"class":402,"line":490},4,[400,492,407],{"class":406},[400,494,411],{"class":410},[400,496,415],{"class":414},[400,498,418],{"class":410},[400,500,415],{"class":414},[400,502,208],{"class":410},[400,504,415],{"class":414},[400,506,507],{"class":410},"Extension",[400,509,435],{"class":414},[400,511,513,515,517,519,521,523,525,527,530,532,534],{"class":402,"line":512},5,[400,514,407],{"class":406},[400,516,411],{"class":410},[400,518,415],{"class":414},[400,520,418],{"class":410},[400,522,415],{"class":414},[400,524,208],{"class":410},[400,526,415],{"class":414},[400,528,529],{"class":410},"Kinds",[400,531,415],{"class":414},[400,533,360],{"class":410},[400,535,435],{"class":414},[400,537,539,541,543,545,547,549,551,553,555,557,559],{"class":402,"line":538},6,[400,540,407],{"class":406},[400,542,411],{"class":410},[400,544,415],{"class":414},[400,546,418],{"class":410},[400,548,415],{"class":414},[400,550,208],{"class":410},[400,552,415],{"class":414},[400,554,529],{"class":410},[400,556,415],{"class":414},[400,558,356],{"class":410},[400,560,435],{"class":414},[400,562,564,566,568,570,572,574,576,578,580,582,585],{"class":402,"line":563},7,[400,565,407],{"class":406},[400,567,411],{"class":410},[400,569,415],{"class":414},[400,571,418],{"class":410},[400,573,415],{"class":414},[400,575,208],{"class":410},[400,577,415],{"class":414},[400,579,529],{"class":410},[400,581,415],{"class":414},[400,583,584],{"class":410},"RestrictsQueries",[400,586,435],{"class":414},[400,588,590,592,594,596,598,600,602,604,607],{"class":402,"line":589},8,[400,591,407],{"class":406},[400,593,411],{"class":410},[400,595,415],{"class":414},[400,597,418],{"class":410},[400,599,415],{"class":414},[400,601,42],{"class":410},[400,603,415],{"class":414},[400,605,606],{"class":410},"Integer",[400,608,435],{"class":414},[400,610,612],{"class":402,"line":611},9,[400,613,615],{"emptyLinePlaceholder":614},true,"\n",[400,617,619,623,626,630,633,636,639,642,645,648,650],{"class":402,"line":618},10,[400,620,622],{"class":621},"spNyl","final",[400,624,625],{"class":621}," class",[400,627,629],{"class":628},"sBMFI"," TenantExtension",[400,631,632],{"class":621}," extends",[400,634,635],{"class":628}," Extension",[400,637,638],{"class":621}," implements",[400,640,641],{"class":628}," DeclaresIndexAttributes",[400,643,644],{"class":414},",",[400,646,647],{"class":628}," RestrictsEngineQueries",[400,649,644],{"class":414},[400,651,652],{"class":628}," RestrictsQueries\n",[400,654,656],{"class":402,"line":655},11,[400,657,658],{"class":414},"{\n",[400,660,662,665,668,672,675,678,681,684,687,690,693],{"class":402,"line":661},12,[400,663,664],{"class":621},"    public",[400,666,667],{"class":621}," function",[400,669,671],{"class":670},"s2Zo4"," __construct",[400,673,674],{"class":414},"(",[400,676,677],{"class":621},"private",[400,679,680],{"class":621}," readonly",[400,682,683],{"class":628}," CurrentTenant",[400,685,686],{"class":414}," $",[400,688,689],{"class":410},"tenant",[400,691,692],{"class":414},")",[400,694,695],{"class":414}," {}\n",[400,697,699],{"class":402,"line":698},13,[400,700,615],{"emptyLinePlaceholder":614},[400,702,704,707,709],{"class":402,"line":703},14,[400,705,706],{"class":410},"    #[",[400,708,415],{"class":414},[400,710,711],{"class":410},"Override]\n",[400,713,715,717,720,722,725,728],{"class":402,"line":714},15,[400,716,664],{"class":621},[400,718,719],{"class":621}," static",[400,721,667],{"class":621},[400,723,724],{"class":670}," name",[400,726,727],{"class":414},"():",[400,729,730],{"class":406}," string\n",[400,732,734],{"class":402,"line":733},16,[400,735,736],{"class":414},"    {\n",[400,738,740,744,747,750,753],{"class":402,"line":739},17,[400,741,743],{"class":742},"s7zQu","        return",[400,745,746],{"class":414}," '",[400,748,689],{"class":749},"sfazB",[400,751,752],{"class":414},"'",[400,754,435],{"class":414},[400,756,758],{"class":402,"line":757},18,[400,759,760],{"class":414},"    }\n",[400,762,764],{"class":402,"line":763},19,[400,765,615],{"emptyLinePlaceholder":614},[400,767,769,771,773],{"class":402,"line":768},20,[400,770,706],{"class":410},[400,772,415],{"class":414},[400,774,711],{"class":410},[400,776,778,780,782,785,787,789,791,794,797],{"class":402,"line":777},21,[400,779,664],{"class":621},[400,781,667],{"class":621},[400,783,784],{"class":670}," restrict",[400,786,674],{"class":414},[400,788,485],{"class":628},[400,790,686],{"class":414},[400,792,793],{"class":410},"context",[400,795,796],{"class":414},"):",[400,798,799],{"class":406}," void\n",[400,801,803],{"class":402,"line":802},22,[400,804,736],{"class":414},[400,806,808],{"class":402,"line":807},23,[400,809,811],{"class":810},"sHwdD","        \u002F\u002F the SQL restriction, see Query extensions\n",[400,813,815],{"class":402,"line":814},24,[400,816,760],{"class":414},[400,818,820],{"class":402,"line":819},25,[400,821,615],{"emptyLinePlaceholder":614},[400,823,825,827,829],{"class":402,"line":824},26,[400,826,706],{"class":410},[400,828,415],{"class":414},[400,830,711],{"class":410},[400,832,834,836,838,841,843,845,847,849,851],{"class":402,"line":833},27,[400,835,664],{"class":621},[400,837,667],{"class":621},[400,839,840],{"class":670}," indexAttributes",[400,842,674],{"class":414},[400,844,459],{"class":628},[400,846,686],{"class":414},[400,848,793],{"class":410},[400,850,796],{"class":414},[400,852,853],{"class":406}," array\n",[400,855,857],{"class":402,"line":856},28,[400,858,736],{"class":414},[400,860,862,864,867,869,872,875,877,879,882,884],{"class":402,"line":861},29,[400,863,743],{"class":742},[400,865,866],{"class":414}," [",[400,868,606],{"class":628},[400,870,871],{"class":414},"::",[400,873,874],{"class":670},"make",[400,876,674],{"class":414},[400,878,752],{"class":414},[400,880,881],{"class":749},"tenant_id",[400,883,752],{"class":414},[400,885,886],{"class":414},")];\n",[400,888,890],{"class":402,"line":889},30,[400,891,760],{"class":414},[400,893,895],{"class":402,"line":894},31,[400,896,615],{"emptyLinePlaceholder":614},[400,898,900,902,904],{"class":402,"line":899},32,[400,901,706],{"class":410},[400,903,415],{"class":414},[400,905,711],{"class":410},[400,907,909,911,913,916,918,920,922,924,926],{"class":402,"line":908},33,[400,910,664],{"class":621},[400,912,667],{"class":621},[400,914,915],{"class":670}," restrictEngine",[400,917,674],{"class":414},[400,919,432],{"class":628},[400,921,686],{"class":414},[400,923,793],{"class":410},[400,925,796],{"class":414},[400,927,799],{"class":406},[400,929,931],{"class":402,"line":930},34,[400,932,736],{"class":414},[400,934,936,939,942,944,947,950,952],{"class":402,"line":935},35,[400,937,938],{"class":742},"        if",[400,940,941],{"class":414}," ($",[400,943,793],{"class":410},[400,945,946],{"class":414},"->",[400,948,949],{"class":410},"rowsRestrictedInSql",[400,951,692],{"class":414},[400,953,954],{"class":414}," {\n",[400,956,958,961],{"class":402,"line":957},36,[400,959,960],{"class":742},"            return",[400,962,435],{"class":414},[400,964,966],{"class":402,"line":965},37,[400,967,968],{"class":414},"        }\n",[400,970,972],{"class":402,"line":971},38,[400,973,615],{"emptyLinePlaceholder":614},[400,975,977,979,981,983,985,988,991,994],{"class":402,"line":976},39,[400,978,938],{"class":742},[400,980,941],{"class":414},[400,982,793],{"class":410},[400,984,946],{"class":414},[400,986,987],{"class":410},"user ",[400,989,990],{"class":414},"===",[400,992,993],{"class":414}," null)",[400,995,954],{"class":414},[400,997,999,1002,1004,1006,1009,1011,1014],{"class":402,"line":998},40,[400,1000,1001],{"class":414},"            $",[400,1003,793],{"class":410},[400,1005,946],{"class":414},[400,1007,1008],{"class":410},"query",[400,1010,946],{"class":414},[400,1012,1013],{"class":670},"matchNothing",[400,1015,1016],{"class":414},"();\n",[400,1018,1020],{"class":402,"line":1019},41,[400,1021,615],{"emptyLinePlaceholder":614},[400,1023,1025,1027],{"class":402,"line":1024},42,[400,1026,960],{"class":742},[400,1028,435],{"class":414},[400,1030,1032],{"class":402,"line":1031},43,[400,1033,968],{"class":414},[400,1035,1037],{"class":402,"line":1036},44,[400,1038,615],{"emptyLinePlaceholder":614},[400,1040,1042,1045,1047,1049,1051,1053,1056,1058,1060,1062,1064,1066,1068,1071,1073,1075,1078,1080,1082,1085],{"class":402,"line":1041},45,[400,1043,1044],{"class":414},"        $",[400,1046,793],{"class":410},[400,1048,946],{"class":414},[400,1050,1008],{"class":410},[400,1052,946],{"class":414},[400,1054,1055],{"class":670},"where",[400,1057,674],{"class":414},[400,1059,752],{"class":414},[400,1061,881],{"class":749},[400,1063,752],{"class":414},[400,1065,644],{"class":414},[400,1067,746],{"class":414},[400,1069,1070],{"class":749},"=",[400,1072,752],{"class":414},[400,1074,644],{"class":414},[400,1076,1077],{"class":414}," $this->",[400,1079,689],{"class":410},[400,1081,946],{"class":414},[400,1083,1084],{"class":670},"id",[400,1086,1087],{"class":414},"());\n",[400,1089,1091],{"class":402,"line":1090},46,[400,1092,760],{"class":414},[400,1094,1096],{"class":402,"line":1095},47,[400,1097,1098],{"class":414},"}\n",[1100,1101,1102,1121,1132,1145,1158],"ul",{},[1103,1104,1105,1106,1109,1110,357,1113,1116,1117,1120],"li",{},"It runs once per engine query, after ",[350,1107,1108],{},"ScoutEngine::perimeter()"," and before the filters, sorts and instructions of the client: searches with a text, engine lists sent with ",[350,1111,1112],{},"\"source\": \"engine\"",[350,1114,1115],{},"Rest::search()"," and actions on their results, also behind ",[350,1118,1119],{},"withoutPerimeter()",".",[1103,1122,1123,1124,1127,1128,1131],{},"Its conditions are AND-ed with the perimeter, the client and the other extensions, in any extension order. On a single-value attribute, ",[350,1125,1126],{},"whereIn()"," lists intersect and ",[350,1129,1130],{},"whereNotIn()"," lists add up, so a client filter cannot bring back a value it excludes.",[1103,1133,1134,1137,1138,1141,1142,1144],{},[350,1135,1136],{},"matchNothing()"," gives an empty page without calling the engine, and an action then runs on no row. Every method of ",[350,1139,1140],{},"$context->query"," returns it, ",[350,1143,1136],{}," included.",[1103,1146,1147,1150,1151,357,1154,1157],{},[350,1148,1149],{},"$context->user"," is the user that the policies run for, also under ",[350,1152,1153],{},"Rest::search()->as($user)",[350,1155,1156],{},"null"," for a guest.",[1103,1159,1160,1163,1164,1166],{},[350,1161,1162],{},"perimeter()"," or ",[350,1165,1119],{}," is still required: an extension does not stand for it.",[1168,1169,1171],"h3",{"id":1170},"the-context","The context",[1173,1174,1175,1188],"table",{},[1176,1177,1178],"thead",{},[1179,1180,1181,1185],"tr",{},[1182,1183,1184],"th",{},"Property",[1182,1186,1187],{},"Value",[1189,1190,1191,1213,1225,1260,1272,1282,1295],"tbody",{},[1179,1192,1193,1198],{},[1194,1195,1196],"td",{},[350,1197,1140],{},[1194,1199,1200,1201,357,1204,357,1206,357,1208,361,1211],{},"The restriction: ",[350,1202,1203],{},"where()",[350,1205,1126],{},[350,1207,1130],{},[350,1209,1210],{},"whereAny()",[350,1212,1136],{},[1179,1214,1215,1222],{},[1194,1216,1217,357,1220],{},[350,1218,1219],{},"$context->resource",[350,1221,1149],{},[1194,1223,1224],{},"The searched resource and the user",[1179,1226,1227,1232],{},[1194,1228,1229],{},[350,1230,1231],{},"$context->rowsRestrictedInSql",[1194,1233,1234,1237,1238,1240,1241,357,1244,361,1247,1249,1250,1253,1254,1257,1258],{},[350,1235,1236],{},"true"," when the ",[350,1239,584],{}," restriction of the same extension already applies in the SQL of the engine query: the Scout ",[350,1242,1243],{},"database",[350,1245,1246],{},"collection",[350,1248,1156],{}," drivers, and any profile that implements ",[350,1251,1252],{},"AppliesRowRestrictions",". ",[350,1255,1256],{},"false"," for an extension that does not implement ",[350,1259,584],{},[1179,1261,1262,1267],{},[1194,1263,1264],{},[350,1265,1266],{},"$context->comparesColumns",[1194,1268,1269,1271],{},[350,1270,1236],{}," when Scout compares each condition with a column of the model table: name only columns there",[1179,1273,1274,1279],{},[1194,1275,1276],{},[350,1277,1278],{},"$context->matchesStringLists",[1194,1280,1281],{},"Whether the engine matches lists of strings",[1179,1283,1284,1289],{},[1194,1285,1286],{},[350,1287,1288],{},"$context->filtersWithGroups",[1194,1290,1291,1292,1294],{},"Whether the engine accepts ",[350,1293,1210],{}," groups",[1179,1296,1297,1302],{},[1194,1298,1299],{},[350,1300,1301],{},"$context->engine",[1194,1303,1304,1305,1308],{},"The Scout engine instance that runs the query: test it with ",[350,1306,1307],{},"instanceof"," to write conditions for one engine",[1168,1310,1312],{"id":1311},"groups","Groups",[346,1314,1315,1317],{},[350,1316,1210],{}," OR-s a group of conditions:",[390,1319,1321],{"className":392,"code":1320,"language":395,"meta":396,"style":396},"use Lomkit\\Rest\\Text\\Engine\\EngineConditionGroup;\n\n$context->query->whereAny(fn (EngineConditionGroup $group) => $group\n    ->where('owner_id', '=', $id)\n    ->whereAll(fn (EngineConditionGroup $all) => $all->where('public', '=', true)->whereIn('team_id', $teams)));\n",[350,1322,1323,1350,1354,1395,1428],{"__ignoreMap":396},[400,1324,1325,1327,1329,1331,1333,1335,1338,1340,1343,1345,1348],{"class":402,"line":403},[400,1326,407],{"class":406},[400,1328,411],{"class":410},[400,1330,415],{"class":414},[400,1332,418],{"class":410},[400,1334,415],{"class":414},[400,1336,1337],{"class":410},"Text",[400,1339,415],{"class":414},[400,1341,1342],{"class":410},"Engine",[400,1344,415],{"class":414},[400,1346,1347],{"class":410},"EngineConditionGroup",[400,1349,435],{"class":414},[400,1351,1352],{"class":402,"line":438},[400,1353,615],{"emptyLinePlaceholder":614},[400,1355,1356,1359,1361,1363,1365,1367,1370,1372,1375,1378,1380,1382,1385,1387,1390,1392],{"class":402,"line":464},[400,1357,1358],{"class":414},"$",[400,1360,793],{"class":410},[400,1362,946],{"class":414},[400,1364,1008],{"class":410},[400,1366,946],{"class":414},[400,1368,1369],{"class":670},"whereAny",[400,1371,674],{"class":414},[400,1373,1374],{"class":621},"fn",[400,1376,1377],{"class":414}," (",[400,1379,1347],{"class":628},[400,1381,686],{"class":414},[400,1383,1384],{"class":410},"group",[400,1386,692],{"class":414},[400,1388,1389],{"class":414}," =>",[400,1391,686],{"class":414},[400,1393,1394],{"class":410},"group\n",[400,1396,1397,1400,1402,1404,1406,1409,1411,1413,1415,1417,1419,1421,1423,1425],{"class":402,"line":490},[400,1398,1399],{"class":414},"    ->",[400,1401,1055],{"class":670},[400,1403,674],{"class":414},[400,1405,752],{"class":414},[400,1407,1408],{"class":749},"owner_id",[400,1410,752],{"class":414},[400,1412,644],{"class":414},[400,1414,746],{"class":414},[400,1416,1070],{"class":749},[400,1418,752],{"class":414},[400,1420,644],{"class":414},[400,1422,686],{"class":414},[400,1424,1084],{"class":410},[400,1426,1427],{"class":414},")\n",[400,1429,1430,1432,1435,1437,1439,1441,1443,1445,1448,1450,1452,1454,1456,1458,1460,1462,1464,1467,1469,1471,1473,1475,1477,1479,1482,1485,1487,1489,1492,1494,1496,1498,1501],{"class":402,"line":512},[400,1431,1399],{"class":414},[400,1433,1434],{"class":670},"whereAll",[400,1436,674],{"class":414},[400,1438,1374],{"class":621},[400,1440,1377],{"class":414},[400,1442,1347],{"class":628},[400,1444,686],{"class":414},[400,1446,1447],{"class":410},"all",[400,1449,692],{"class":414},[400,1451,1389],{"class":414},[400,1453,686],{"class":414},[400,1455,1447],{"class":410},[400,1457,946],{"class":414},[400,1459,1055],{"class":670},[400,1461,674],{"class":414},[400,1463,752],{"class":414},[400,1465,1466],{"class":749},"public",[400,1468,752],{"class":414},[400,1470,644],{"class":414},[400,1472,746],{"class":414},[400,1474,1070],{"class":749},[400,1476,752],{"class":414},[400,1478,644],{"class":414},[400,1480,1481],{"class":414}," true)->",[400,1483,1484],{"class":670},"whereIn",[400,1486,674],{"class":414},[400,1488,752],{"class":414},[400,1490,1491],{"class":749},"team_id",[400,1493,752],{"class":414},[400,1495,644],{"class":414},[400,1497,686],{"class":414},[400,1499,1500],{"class":410},"teams",[400,1502,1503],{"class":414},")));\n",[1100,1505,1506,1524,1527,1539,1545],{},[1103,1507,1508,1510,1511,357,1513,357,1515,357,1517,1520,1521,1523],{},[350,1509,1347],{}," offers ",[350,1512,1203],{},[350,1514,1126],{},[350,1516,1130],{},[350,1518,1519],{},"whereAll()"," for an AND group and ",[350,1522,1210],{}," for an OR group.",[1103,1525,1526],{},"The whole group is one condition of the extension, AND-ed with the perimeter, the other restrictions, the instructions, the lists of strings and the client filters: it widens only within itself.",[1103,1528,1529,1530,1532,1533,1535,1536,1538],{},"A group without any condition matches nothing. ",[350,1531,1126],{}," with an empty list is false and ",[350,1534,1130],{}," with an empty list is true, so a true member of a ",[350,1537,1210],{}," group removes the whole condition of the extension: refuse or replace an empty list read from the database before you group it.",[1103,1540,1541,1542,1120],{},"A condition added to a group after its closure returned throws ",[350,1543,1544],{},"InvalidEngineQueryException",[1103,1546,1547,1548,1550,1551,357,1553,361,1555,1557,1558,1560,1561,1564],{},"Check ",[350,1549,1288],{}," first. The built-in Typesense, Meilisearch, Turbopuffer, ",[350,1552,1243],{},[350,1554,1246],{},[350,1556,1156],{}," profiles accept groups. On Algolia, and on a profile that an extension provides, ",[350,1559,1210],{}," throws ",[350,1562,1563],{},"InvalidEngineExtensionException",", which names the extension, its class, the resource and the engine.",[1168,1566,1568],{"id":1567},"what-it-refuses","What it refuses",[1100,1570,1571,1589],{},[1103,1572,1573,1574,357,1576,357,1578,357,1580,361,1582,1584,1585,1588],{},"Anything but ",[350,1575,1203],{},[350,1577,1126],{},[350,1579,1130],{},[350,1581,1210],{},[350,1583,1136],{},": no client-style ",[350,1586,1587],{},"or",", no sort, no engine option.",[1103,1590,1591,1592,357,1595,1163,1598,1600,1601,1603],{},"An attribute that is not in the ",[350,1593,1594],{},"filterable()",[350,1596,1597],{},"indexAttributes()",[350,1599,1162],{}," list of the resource, or declared by an extension, and any condition that the engine query refuses. ",[350,1602,1563],{}," quotes the refusal and keeps it as its previous exception.",[1168,1605,1607],{"id":1606},"pages-actions-and-the-index","Pages, actions and the index",[1100,1609,1610,1624,1634,1640,1665],{},[1103,1611,1612,1613,1615,1616,1619,1620,1120],{},"The rows of an engine page load by key without the ",[350,1614,584],{}," restrictions and without ",[350,1617,1618],{},"perimeterQuery()",": the engine is the proof, so a row that a stale index still matches is shown until the index is updated. Make both restrictions say the same, and ",[371,1621,1623],{"href":1622},"\u002Fsearch\u002Fsearch-engines#keeping-the-index-in-sync","keep the index in sync",[1103,1625,1626,1627,1630,1631,1633],{},"A condition that ",[350,1628,1629],{},"restrictEngine()"," reads live, such as a ",[350,1632,1126],{}," on keys read from the database, applies at once. A change carried by an indexed attribute applies once the row is indexed again.",[1103,1635,1636,1637,1639],{},"Actions on search results, queued or not, read their keys through the ",[350,1638,584],{}," restrictions: a row that the index still matches but the restriction now excludes is not handed to the action.",[1103,1641,1642,1643,1645,1646,1649,1650,1653,1654,1657,1658,1661,1662,1120],{},"A ",[350,1644,584],{}," extension without this kind makes the text searches of the resource throw ",[350,1647,1648],{},"InvalidTextSearchException"," on an engine that does not apply SQL restrictions. The message offers to leave the resource out with ",[350,1651,1652],{},"appliesTo()",", or to add the class to ",[350,1655,1656],{},"rest.disabled_extensions",", and ",[350,1659,1660],{},"rest:check"," reports it under ",[350,1663,1664],{},"rows",[1103,1666,1667,1668,1670,1671,1673,1674,361,1676,1678,1679,1163,1681,1683],{},"The Scout ",[350,1669,1156],{}," driver returns no row, and a ",[350,1672,584],{}," extension is never refused on it. Like ",[350,1675,1246],{},[350,1677,1243],{},", it does not compare lists of strings: a ",[350,1680,1126],{},[350,1682,1130],{}," on a list throws there.",[375,1685,1687],{"id":1686},"declaring-index-attributes","Declaring index attributes",[346,1689,1690,1693,1694,1696],{},[350,1691,1692],{},"DeclaresIndexAttributes::indexAttributes(IndexAttributesContext $context)"," declares index attributes that the engine restrictions, ",[350,1695,1108],{}," and the engine instructions compare. Here, a list of the keys that may read each row:",[390,1698,1701],{"className":392,"code":1699,"filename":1700,"language":395,"meta":396,"style":396},"use Lomkit\\Rest\\Extensions\\Contexts\\EngineRestrictionContext;\nuse Lomkit\\Rest\\Extensions\\Contexts\\IndexAttributesContext;\nuse Lomkit\\Rest\\Extensions\\Extension;\nuse Lomkit\\Rest\\Extensions\\Kinds\\DeclaresIndexAttributes;\nuse Lomkit\\Rest\\Extensions\\Kinds\\RestrictsEngineQueries;\nuse Lomkit\\Rest\\Text\\Engine\\StringListAttribute;\n\nfinal class ReadersExtension extends Extension implements DeclaresIndexAttributes, RestrictsEngineQueries\n{\n    #[\\Override]\n    public static function name(): string\n    {\n        return 'readers';\n    }\n\n    #[\\Override]\n    public function indexAttributes(IndexAttributesContext $context): array\n    {\n        return $context->matchesStringLists ? [StringListAttribute::make('readers')] : [];\n    }\n\n    #[\\Override]\n    public function restrictEngine(EngineRestrictionContext $context): void\n    {\n        $reader = $context->user?->getAuthIdentifier();\n\n        if (! $context->matchesStringLists || $reader === null) {\n            $context->query->matchNothing();\n\n            return;\n        }\n\n        $context->query->whereIn('readers', [(string) $reader]);\n    }\n}\n","Vendor\u002FSharing\u002FReadersExtension.php",[350,1702,1703,1727,1751,1771,1795,1819,1844,1848,1870,1874,1882,1896,1900,1913,1917,1921,1929,1949,1953,1994,1998,2002,2010,2030,2034,2060,2064,2092,2108,2112,2118,2122,2126,2166,2170],{"__ignoreMap":396},[400,1704,1705,1707,1709,1711,1713,1715,1717,1719,1721,1723,1725],{"class":402,"line":403},[400,1706,407],{"class":406},[400,1708,411],{"class":410},[400,1710,415],{"class":414},[400,1712,418],{"class":410},[400,1714,415],{"class":414},[400,1716,208],{"class":410},[400,1718,415],{"class":414},[400,1720,427],{"class":410},[400,1722,415],{"class":414},[400,1724,432],{"class":410},[400,1726,435],{"class":414},[400,1728,1729,1731,1733,1735,1737,1739,1741,1743,1745,1747,1749],{"class":402,"line":438},[400,1730,407],{"class":406},[400,1732,411],{"class":410},[400,1734,415],{"class":414},[400,1736,418],{"class":410},[400,1738,415],{"class":414},[400,1740,208],{"class":410},[400,1742,415],{"class":414},[400,1744,427],{"class":410},[400,1746,415],{"class":414},[400,1748,459],{"class":410},[400,1750,435],{"class":414},[400,1752,1753,1755,1757,1759,1761,1763,1765,1767,1769],{"class":402,"line":464},[400,1754,407],{"class":406},[400,1756,411],{"class":410},[400,1758,415],{"class":414},[400,1760,418],{"class":410},[400,1762,415],{"class":414},[400,1764,208],{"class":410},[400,1766,415],{"class":414},[400,1768,507],{"class":410},[400,1770,435],{"class":414},[400,1772,1773,1775,1777,1779,1781,1783,1785,1787,1789,1791,1793],{"class":402,"line":490},[400,1774,407],{"class":406},[400,1776,411],{"class":410},[400,1778,415],{"class":414},[400,1780,418],{"class":410},[400,1782,415],{"class":414},[400,1784,208],{"class":410},[400,1786,415],{"class":414},[400,1788,529],{"class":410},[400,1790,415],{"class":414},[400,1792,360],{"class":410},[400,1794,435],{"class":414},[400,1796,1797,1799,1801,1803,1805,1807,1809,1811,1813,1815,1817],{"class":402,"line":512},[400,1798,407],{"class":406},[400,1800,411],{"class":410},[400,1802,415],{"class":414},[400,1804,418],{"class":410},[400,1806,415],{"class":414},[400,1808,208],{"class":410},[400,1810,415],{"class":414},[400,1812,529],{"class":410},[400,1814,415],{"class":414},[400,1816,356],{"class":410},[400,1818,435],{"class":414},[400,1820,1821,1823,1825,1827,1829,1831,1833,1835,1837,1839,1842],{"class":402,"line":538},[400,1822,407],{"class":406},[400,1824,411],{"class":410},[400,1826,415],{"class":414},[400,1828,418],{"class":410},[400,1830,415],{"class":414},[400,1832,1337],{"class":410},[400,1834,415],{"class":414},[400,1836,1342],{"class":410},[400,1838,415],{"class":414},[400,1840,1841],{"class":410},"StringListAttribute",[400,1843,435],{"class":414},[400,1845,1846],{"class":402,"line":563},[400,1847,615],{"emptyLinePlaceholder":614},[400,1849,1850,1852,1854,1857,1859,1861,1863,1865,1867],{"class":402,"line":589},[400,1851,622],{"class":621},[400,1853,625],{"class":621},[400,1855,1856],{"class":628}," ReadersExtension",[400,1858,632],{"class":621},[400,1860,635],{"class":628},[400,1862,638],{"class":621},[400,1864,641],{"class":628},[400,1866,644],{"class":414},[400,1868,1869],{"class":628}," RestrictsEngineQueries\n",[400,1871,1872],{"class":402,"line":611},[400,1873,658],{"class":414},[400,1875,1876,1878,1880],{"class":402,"line":618},[400,1877,706],{"class":410},[400,1879,415],{"class":414},[400,1881,711],{"class":410},[400,1883,1884,1886,1888,1890,1892,1894],{"class":402,"line":655},[400,1885,664],{"class":621},[400,1887,719],{"class":621},[400,1889,667],{"class":621},[400,1891,724],{"class":670},[400,1893,727],{"class":414},[400,1895,730],{"class":406},[400,1897,1898],{"class":402,"line":661},[400,1899,736],{"class":414},[400,1901,1902,1904,1906,1909,1911],{"class":402,"line":698},[400,1903,743],{"class":742},[400,1905,746],{"class":414},[400,1907,1908],{"class":749},"readers",[400,1910,752],{"class":414},[400,1912,435],{"class":414},[400,1914,1915],{"class":402,"line":703},[400,1916,760],{"class":414},[400,1918,1919],{"class":402,"line":714},[400,1920,615],{"emptyLinePlaceholder":614},[400,1922,1923,1925,1927],{"class":402,"line":733},[400,1924,706],{"class":410},[400,1926,415],{"class":414},[400,1928,711],{"class":410},[400,1930,1931,1933,1935,1937,1939,1941,1943,1945,1947],{"class":402,"line":739},[400,1932,664],{"class":621},[400,1934,667],{"class":621},[400,1936,840],{"class":670},[400,1938,674],{"class":414},[400,1940,459],{"class":628},[400,1942,686],{"class":414},[400,1944,793],{"class":410},[400,1946,796],{"class":414},[400,1948,853],{"class":406},[400,1950,1951],{"class":402,"line":757},[400,1952,736],{"class":414},[400,1954,1955,1957,1959,1961,1963,1966,1969,1971,1973,1975,1977,1979,1981,1983,1985,1988,1991],{"class":402,"line":763},[400,1956,743],{"class":742},[400,1958,686],{"class":414},[400,1960,793],{"class":410},[400,1962,946],{"class":414},[400,1964,1965],{"class":410},"matchesStringLists ",[400,1967,1968],{"class":414},"?",[400,1970,866],{"class":414},[400,1972,1841],{"class":628},[400,1974,871],{"class":414},[400,1976,874],{"class":670},[400,1978,674],{"class":414},[400,1980,752],{"class":414},[400,1982,1908],{"class":749},[400,1984,752],{"class":414},[400,1986,1987],{"class":414},")]",[400,1989,1990],{"class":414}," :",[400,1992,1993],{"class":414}," [];\n",[400,1995,1996],{"class":402,"line":768},[400,1997,760],{"class":414},[400,1999,2000],{"class":402,"line":777},[400,2001,615],{"emptyLinePlaceholder":614},[400,2003,2004,2006,2008],{"class":402,"line":802},[400,2005,706],{"class":410},[400,2007,415],{"class":414},[400,2009,711],{"class":410},[400,2011,2012,2014,2016,2018,2020,2022,2024,2026,2028],{"class":402,"line":807},[400,2013,664],{"class":621},[400,2015,667],{"class":621},[400,2017,915],{"class":670},[400,2019,674],{"class":414},[400,2021,432],{"class":628},[400,2023,686],{"class":414},[400,2025,793],{"class":410},[400,2027,796],{"class":414},[400,2029,799],{"class":406},[400,2031,2032],{"class":402,"line":814},[400,2033,736],{"class":414},[400,2035,2036,2038,2041,2043,2045,2047,2049,2052,2055,2058],{"class":402,"line":819},[400,2037,1044],{"class":414},[400,2039,2040],{"class":410},"reader ",[400,2042,1070],{"class":414},[400,2044,686],{"class":414},[400,2046,793],{"class":410},[400,2048,946],{"class":414},[400,2050,2051],{"class":410},"user",[400,2053,2054],{"class":414},"?->",[400,2056,2057],{"class":670},"getAuthIdentifier",[400,2059,1016],{"class":414},[400,2061,2062],{"class":402,"line":824},[400,2063,615],{"emptyLinePlaceholder":614},[400,2065,2066,2068,2071,2073,2075,2077,2079,2082,2084,2086,2088,2090],{"class":402,"line":833},[400,2067,938],{"class":742},[400,2069,2070],{"class":414}," (!",[400,2072,686],{"class":414},[400,2074,793],{"class":410},[400,2076,946],{"class":414},[400,2078,1965],{"class":410},[400,2080,2081],{"class":414},"||",[400,2083,686],{"class":414},[400,2085,2040],{"class":410},[400,2087,990],{"class":414},[400,2089,993],{"class":414},[400,2091,954],{"class":414},[400,2093,2094,2096,2098,2100,2102,2104,2106],{"class":402,"line":856},[400,2095,1001],{"class":414},[400,2097,793],{"class":410},[400,2099,946],{"class":414},[400,2101,1008],{"class":410},[400,2103,946],{"class":414},[400,2105,1013],{"class":670},[400,2107,1016],{"class":414},[400,2109,2110],{"class":402,"line":861},[400,2111,615],{"emptyLinePlaceholder":614},[400,2113,2114,2116],{"class":402,"line":889},[400,2115,960],{"class":742},[400,2117,435],{"class":414},[400,2119,2120],{"class":402,"line":894},[400,2121,968],{"class":414},[400,2123,2124],{"class":402,"line":899},[400,2125,615],{"emptyLinePlaceholder":614},[400,2127,2128,2130,2132,2134,2136,2138,2140,2142,2144,2146,2148,2150,2153,2156,2158,2160,2163],{"class":402,"line":908},[400,2129,1044],{"class":414},[400,2131,793],{"class":410},[400,2133,946],{"class":414},[400,2135,1008],{"class":410},[400,2137,946],{"class":414},[400,2139,1484],{"class":670},[400,2141,674],{"class":414},[400,2143,752],{"class":414},[400,2145,1908],{"class":749},[400,2147,752],{"class":414},[400,2149,644],{"class":414},[400,2151,2152],{"class":414}," [(",[400,2154,2155],{"class":621},"string",[400,2157,692],{"class":414},[400,2159,686],{"class":414},[400,2161,2162],{"class":410},"reader",[400,2164,2165],{"class":414},"]);\n",[400,2167,2168],{"class":402,"line":930},[400,2169,760],{"class":414},[400,2171,2172],{"class":402,"line":935},[400,2173,1098],{"class":414},[346,2175,2176,2177,2180,2181,2184],{},"The model indexes the list: ",[350,2178,2179],{},"toSearchableArray()"," returns ",[350,2182,2183],{},"'readers' => ['12', 'group-3']",". On an engine without lists, this extension shows no row.",[1100,2186,2187,2196,2222,2233],{},[1103,2188,2189,2190,2192,2193,2195],{},"It receives ",[350,2191,1219],{},", a class name, and ",[350,2194,1278],{},", no user. It runs once per request and resource.",[1103,2197,2198,2199,357,2202,357,2204,357,2207,357,2210,1163,2212,2215,2216,2219,2220,1120],{},"Return fields (",[350,2200,2201],{},"ID",[350,2203,606],{},[350,2205,2206],{},"Number",[350,2208,2209],{},"Boolean",[350,2211,1337],{},[350,2213,2214],{},"Enum",") or lists of strings with ",[350,2217,2218],{},"StringListAttribute::make('readers')",". The attributes keep their real index name, never prefixed, and follow the rules of ",[350,2221,1594],{},[1103,2223,2224,2225,2228,2229,2232],{},"Clients never use them: they stay out of the client grammar (a filter on one is the ",[350,2226,2227],{},"422"," of an unknown name), ",[350,2230,2231],{},"\u002Fdetails"," and the OpenAPI document.",[1103,2234,2235,2236,2238,2239,2245,2246,1120],{},"The package cannot check that ",[350,2237,2179],{}," and the index settings hold these attributes: index each one yourself, or check it with ",[371,2240,2242],{"href":2241},"\u002Fextensions\u002Fresponses-and-checks#checking-resources",[350,2243,2244],{},"ChecksResources",". A resource that alone needs an attribute declares it with ",[371,2247,2249],{"href":2248},"\u002Fsearch\u002Fsearch-engines#index-attributes",[350,2250,2251],{},"ScoutEngine::indexAttributes()",[1168,2253,2255],{"id":2254},"owners","Owners",[1100,2257,2258,2278,2281],{},[1103,2259,2260,2261,2263,2264,2266,2267,357,2269,2271,2272,1163,2275,1120],{},"A name that ",[350,2262,1594],{}," declares throws ",[350,2265,1563],{},", and so does a name that ",[350,2268,2251],{},[350,2270,1162],{}," or another extension declares with another field type or list marker. The message names the list of the resource as ",[350,2273,2274],{},"the indexAttributes() list",[350,2276,2277],{},"the perimeter() list",[1103,2279,2280],{},"The same declaration is accepted: the one of the resource is used, else the one of the first extension by name.",[1103,2282,2283,2285,2286,2288],{},[350,2284,1660],{}," reports such a conflict as a ",[350,2287,1664],{}," problem.",[1168,2290,2292],{"id":2291},"lists-of-strings","Lists of strings",[1100,2294,2295,2307,2316,2319,2336],{},[1103,2296,2297,2300,2301,2303,2304,2306],{},[350,2298,2299],{},"whereIn('readers', [...])"," keeps the rows that share at least one value with the list, and ",[350,2302,1130],{}," the rows that share none. ",[350,2305,1203],{}," is refused on a list.",[1103,2308,2309,2310,2312,2313,2315],{},"Two or more ",[350,2311,1126],{}," lists on one list attribute keep the rows that share at least one value with each list, whichever source sets them: ",[350,2314,1162],{},", the restrictions or the instructions. No list widens another.",[1103,2317,2318],{},"When one list holds the other, only the narrower one is sent: the same rows, with a shorter filter. Otherwise each further list joins the native filter as its own condition, AND-ed at the top level, on the built-in Typesense, Meilisearch and Turbopuffer profiles.",[1103,2320,2321,2322,2325,2326,2328,2329,353,2332,2335],{},"On Algolia, and on a profile that an extension provides, two lists that neither holds throw ",[350,2323,2324],{},"Lomkit\\Rest\\Exceptions\\ConflictingListsException",", which names the sources, the attribute and the engine. Set by an instruction, such a list answers ",[350,2327,2227],{}," on ",[350,2330,2331],{},"search.instructions.N",[350,2333,2334],{},"The search.instructions.0 field restricts a list with values that neither hold nor are held by the list that the search already keeps, and the search engine cannot require both lists."," On such an engine, an instruction must not take client values for a list that the perimeter or a restriction also restricts.",[1103,2337,2338,2339,2342,2343,357,2345,361,2347,2349,2350,2352,2353,2355],{},"A list can be declared on every engine. Comparing it on an engine whose profile does not implement ",[350,2340,2341],{},"MatchesStringLists",", such as the Scout ",[350,2344,1243],{},[350,2346,1246],{},[350,2348,1156],{}," drivers, throws ",[350,2351,1563],{},": check ",[350,2354,1278],{}," first.",[346,2357,2358],{},"The index holds each list as:",[1173,2360,2361,2370],{},[1176,2362,2363],{},[1179,2364,2365,2367],{},[1182,2366,1342],{},[1182,2368,2369],{},"Index schema",[1189,2371,2372,2386,2398,2409],{},[1179,2373,2374,2377],{},[1194,2375,2376],{},"Algolia",[1194,2378,2379,2382,2383],{},[350,2380,2381],{},"filterOnly(readers)"," in ",[350,2384,2385],{},"attributesForFaceting",[1179,2387,2388,2391],{},[1194,2389,2390],{},"Meilisearch",[1194,2392,2393,2382,2395],{},[350,2394,1908],{},[350,2396,2397],{},"filterableAttributes",[1179,2399,2400,2403],{},[1194,2401,2402],{},"Typesense",[1194,2404,2405,2406],{},"a collection field ",[350,2407,2408],{},"['name' => 'readers', 'type' => 'string[]']",[1179,2410,2411,2414],{},[1194,2412,2413],{},"Turbopuffer",[1194,2415,2416,2417,2420,2421,2424,2425],{},"a ",[350,2418,2419],{},"[]string"," attribute, matched with ",[350,2422,2423],{},"ContainsAny"," and excluded with ",[350,2426,2427],{},"NotContainsAny",[375,2429,2431],{"id":2430},"providing-engine-profiles","Providing engine profiles",[346,2433,2434,2435,2438,2439,2442,2443,2445],{},"A profile tells the package what a Scout engine runs: its operators, sorts, page sizes, owned options and how it pages. ",[350,2436,2437],{},"ProvidesEngineProfiles::engineProfile(EngineProfileContext $context)"," returns the ",[350,2440,2441],{},"EngineProfile"," of an engine, or ",[350,2444,1156],{},":",[390,2447,2450],{"className":392,"code":2448,"filename":2449,"language":395,"meta":396,"style":396},"use Lomkit\\Rest\\Extensions\\Contexts\\EngineProfileContext;\nuse Lomkit\\Rest\\Extensions\\Extension;\nuse Lomkit\\Rest\\Extensions\\Kinds\\ProvidesEngineProfiles;\nuse Lomkit\\Rest\\Text\\Engine\\Profiles\\EngineProfile;\n\nfinal class OpenSearchExtension extends Extension implements ProvidesEngineProfiles\n{\n    #[\\Override]\n    public static function name(): string\n    {\n        return 'opensearch';\n    }\n\n    #[\\Override]\n    public function engineProfile(EngineProfileContext $context): ?EngineProfile\n    {\n        return $context->engine instanceof OpenSearchEngine ? new OpenSearchProfile($context->engine) : null;\n    }\n}\n","Vendor\u002FOpenSearch\u002FOpenSearchExtension.php",[350,2451,2452,2477,2497,2521,2550,2554,2572,2576,2584,2598,2602,2615,2619,2623,2631,2656,2660,2703,2707],{"__ignoreMap":396},[400,2453,2454,2456,2458,2460,2462,2464,2466,2468,2470,2472,2475],{"class":402,"line":403},[400,2455,407],{"class":406},[400,2457,411],{"class":410},[400,2459,415],{"class":414},[400,2461,418],{"class":410},[400,2463,415],{"class":414},[400,2465,208],{"class":410},[400,2467,415],{"class":414},[400,2469,427],{"class":410},[400,2471,415],{"class":414},[400,2473,2474],{"class":410},"EngineProfileContext",[400,2476,435],{"class":414},[400,2478,2479,2481,2483,2485,2487,2489,2491,2493,2495],{"class":402,"line":438},[400,2480,407],{"class":406},[400,2482,411],{"class":410},[400,2484,415],{"class":414},[400,2486,418],{"class":410},[400,2488,415],{"class":414},[400,2490,208],{"class":410},[400,2492,415],{"class":414},[400,2494,507],{"class":410},[400,2496,435],{"class":414},[400,2498,2499,2501,2503,2505,2507,2509,2511,2513,2515,2517,2519],{"class":402,"line":464},[400,2500,407],{"class":406},[400,2502,411],{"class":410},[400,2504,415],{"class":414},[400,2506,418],{"class":410},[400,2508,415],{"class":414},[400,2510,208],{"class":410},[400,2512,415],{"class":414},[400,2514,529],{"class":410},[400,2516,415],{"class":414},[400,2518,364],{"class":410},[400,2520,435],{"class":414},[400,2522,2523,2525,2527,2529,2531,2533,2535,2537,2539,2541,2544,2546,2548],{"class":402,"line":490},[400,2524,407],{"class":406},[400,2526,411],{"class":410},[400,2528,415],{"class":414},[400,2530,418],{"class":410},[400,2532,415],{"class":414},[400,2534,1337],{"class":410},[400,2536,415],{"class":414},[400,2538,1342],{"class":410},[400,2540,415],{"class":414},[400,2542,2543],{"class":410},"Profiles",[400,2545,415],{"class":414},[400,2547,2441],{"class":410},[400,2549,435],{"class":414},[400,2551,2552],{"class":402,"line":512},[400,2553,615],{"emptyLinePlaceholder":614},[400,2555,2556,2558,2560,2563,2565,2567,2569],{"class":402,"line":538},[400,2557,622],{"class":621},[400,2559,625],{"class":621},[400,2561,2562],{"class":628}," OpenSearchExtension",[400,2564,632],{"class":621},[400,2566,635],{"class":628},[400,2568,638],{"class":621},[400,2570,2571],{"class":628}," ProvidesEngineProfiles\n",[400,2573,2574],{"class":402,"line":563},[400,2575,658],{"class":414},[400,2577,2578,2580,2582],{"class":402,"line":589},[400,2579,706],{"class":410},[400,2581,415],{"class":414},[400,2583,711],{"class":410},[400,2585,2586,2588,2590,2592,2594,2596],{"class":402,"line":611},[400,2587,664],{"class":621},[400,2589,719],{"class":621},[400,2591,667],{"class":621},[400,2593,724],{"class":670},[400,2595,727],{"class":414},[400,2597,730],{"class":406},[400,2599,2600],{"class":402,"line":618},[400,2601,736],{"class":414},[400,2603,2604,2606,2608,2611,2613],{"class":402,"line":655},[400,2605,743],{"class":742},[400,2607,746],{"class":414},[400,2609,2610],{"class":749},"opensearch",[400,2612,752],{"class":414},[400,2614,435],{"class":414},[400,2616,2617],{"class":402,"line":661},[400,2618,760],{"class":414},[400,2620,2621],{"class":402,"line":698},[400,2622,615],{"emptyLinePlaceholder":614},[400,2624,2625,2627,2629],{"class":402,"line":703},[400,2626,706],{"class":410},[400,2628,415],{"class":414},[400,2630,711],{"class":410},[400,2632,2633,2635,2637,2640,2642,2644,2646,2648,2650,2653],{"class":402,"line":714},[400,2634,664],{"class":621},[400,2636,667],{"class":621},[400,2638,2639],{"class":670}," engineProfile",[400,2641,674],{"class":414},[400,2643,2474],{"class":628},[400,2645,686],{"class":414},[400,2647,793],{"class":410},[400,2649,796],{"class":414},[400,2651,2652],{"class":414}," ?",[400,2654,2655],{"class":628},"EngineProfile\n",[400,2657,2658],{"class":402,"line":733},[400,2659,736],{"class":414},[400,2661,2662,2664,2666,2668,2670,2673,2675,2678,2680,2683,2686,2689,2691,2693,2696,2698,2700],{"class":402,"line":739},[400,2663,743],{"class":742},[400,2665,686],{"class":414},[400,2667,793],{"class":410},[400,2669,946],{"class":414},[400,2671,2672],{"class":410},"engine ",[400,2674,1307],{"class":414},[400,2676,2677],{"class":628}," OpenSearchEngine",[400,2679,2652],{"class":414},[400,2681,2682],{"class":406}," new",[400,2684,2685],{"class":628}," OpenSearchProfile",[400,2687,2688],{"class":414},"($",[400,2690,793],{"class":410},[400,2692,946],{"class":414},[400,2694,2695],{"class":410},"engine",[400,2697,692],{"class":414},[400,2699,1990],{"class":414},[400,2701,2702],{"class":414}," null;\n",[400,2704,2705],{"class":402,"line":757},[400,2706,760],{"class":414},[400,2708,2709],{"class":402,"line":763},[400,2710,1098],{"class":414},[1100,2712,2713,2723,2726],{},[1103,2714,2189,2715,361,2717,2719,2720,2722],{},[350,2716,1219],{},[350,2718,1301],{}," only, no user. Answer without side effects, and ",[350,2721,1156],{}," for an engine that the extension does not know.",[1103,2724,2725],{},"The package asks the extensions before its own profiles, so an extension can also replace the profile of a built-in engine. A provided profile goes through the same checks as a built-in one.",[1103,2727,2728,2729,2731,2732,2734],{},"Two extensions that provide a profile for one engine throw ",[350,2730,1563],{},", which names both and the engine class: return ",[350,2733,1156],{}," from one of them, or disable one.",[1168,2736,2738],{"id":2737},"writing-a-profile","Writing a profile",[346,2740,2741,2742,2445],{},"A profile implements ",[350,2743,2744],{},"Lomkit\\Rest\\Text\\Engine\\Profiles\\EngineProfile",[1173,2746,2747,2757],{},[1176,2748,2749],{},[1179,2750,2751,2754],{},[1182,2752,2753],{},"Method",[1182,2755,2756],{},"Returns",[1189,2758,2759,2769,2787,2808,2822,2832,2848,2858,2876,2889],{},[1179,2760,2761,2766],{},[1194,2762,2763],{},[350,2764,2765],{},"name()",[1194,2767,2768],{},"The name of the engine in messages",[1179,2770,2771,2776],{},[1194,2772,2773],{},[350,2774,2775],{},"operators(Field $attribute)",[1194,2777,2778,2779,2782,2783,2786],{},"The ",[350,2780,2781],{},"FilterOperator"," cases that the engine compares on the attribute. ",[350,2784,2785],{},"EngineOperators::for($attribute)"," gives the usual set",[1179,2788,2789,2794],{},[1194,2790,2791],{},[350,2792,2793],{},"sortKeys()",[1194,2795,2796,2797,2800,2801,357,2804,2807],{},"The most sorts of a search, ",[350,2798,2799],{},"0"," to refuse ",[350,2802,2803],{},"sortable()",[350,2805,2806],{},"PHP_INT_MAX"," for no bound",[1179,2809,2810,2815],{},[1194,2811,2812],{},[350,2813,2814],{},"ownedOptions()",[1194,2816,2817,2818,2821],{},"The Scout options that the profile sets itself, which ",[350,2819,2820],{},"options()"," cannot set",[1179,2823,2824,2829],{},[1194,2825,2826],{},[350,2827,2828],{},"exactTotal()",[1194,2830,2831],{},"Whether the total of a page is exact",[1179,2833,2834,2842],{},[1194,2835,2836,357,2839],{},[350,2837,2838],{},"maxPageSize()",[350,2840,2841],{},"window()",[1194,2843,2844,2845,2847],{},"The largest page and the deepest position the engine pages to, ",[350,2846,1156],{}," when unbounded",[1179,2849,2850,2855],{},[1194,2851,2852],{},[350,2853,2854],{},"ensureUsableBy(TextTarget $target)",[1194,2856,2857],{},"Nothing: throws when the model cannot be searched there",[1179,2859,2860,2865],{},[1194,2861,2862],{},[350,2863,2864],{},"page(Builder $builder, ScoutModel $model, int $perPage, int $page)",[1194,2866,2867,2868,2871,2872,2875],{},"An ",[350,2869,2870],{},"EnginePage",": the keys of the page in engine order and the total, ",[350,2873,2874],{},"EnginePage::empty()"," for none",[1179,2877,2878,2883],{},[1194,2879,2880],{},[350,2881,2882],{},"reachable(ScoutModel $model)",[1194,2884,2885,2886,2888],{},"The number of hits that an action may read, ",[350,2887,1156],{}," when unknown",[1179,2890,2891,2896],{},[1194,2892,2893],{},[350,2894,2895],{},"literal()",[1194,2897,2778,2898,2901],{},[350,2899,2900],{},"EngineLiteral"," that writes a value into an engine filter",[1100,2903,2904,2916],{},[1103,2905,2906,2907,2910,2911,2913,2914,1120],{},"Every key that ",[350,2908,2909],{},"page()"," returns must match the filter that the builder carries: pages trust the engine. Turn off the features that add hits outside the filter, such as pinned, promoted or curated hits, in ",[350,2912,2909],{},", and list their options in ",[350,2915,2814],{},[1103,2917,2918],{},"A profile written for 3.5 still works.",[346,2920,2921,2922,2925,2926,2445],{},"Optional interfaces of ",[350,2923,2924],{},"Lomkit\\Rest\\Text\\Engine\\Profiles"," add capabilities, checked with ",[350,2927,1307],{},[1173,2929,2930,2940],{},[1176,2931,2932],{},[1179,2933,2934,2937],{},[1182,2935,2936],{},"Interface",[1182,2938,2939],{},"Capability",[1189,2941,2942,2967,2977,2995],{},[1179,2943,2944,2948],{},[1194,2945,2946],{},[350,2947,2341],{},[1194,2949,2950,2951,361,2953,2955,2956,361,2959,2962,2963,361,2965],{},"The engine matches lists of strings. A provided profile gets its lists through Scout's ",[350,2952,1126],{},[350,2954,1130],{},": a profile that replaces the built-in Turbopuffer one sends them as ",[350,2957,2958],{},"In",[350,2960,2961],{},"NotIn",", no longer as ",[350,2964,2423],{},[350,2966,2427],{},[1179,2968,2969,2974],{},[1194,2970,2971],{},[350,2972,2973],{},"ComparesColumns",[1194,2975,2976],{},"Scout compares each condition with a column of the model table",[1179,2978,2979,2983],{},[1194,2980,2981],{},[350,2982,1252],{},[1194,2984,2985,2986,2989,2990,2992,2993],{},"The profile runs SQL: ",[350,2987,2988],{},"restrictedPage(Builder $builder, ScoutModel $model, int $perPage, int $page, RowRestriction $rows)"," applies the ",[350,2991,584],{}," restrictions, so they work without ",[350,2994,356],{},[1179,2996,2997,3002],{},[1194,2998,2999],{},[350,3000,3001],{},"ListsWithoutText",[1194,3003,3004,3005,353,3009,3012,3013,3016],{},"The engine serves ",[371,3006,3008],{"href":3007},"\u002Fsearch\u002Fsearch-engines#engine-lists","engine lists",[350,3010,3011],{},"matchAll()"," returns the query that matches every document, ",[350,3014,3015],{},"listSortKeys()"," the most sorts of a search without text",[1100,3018,3019,3038,3052,3066],{},[1103,3020,3021,3024,3025,3027,3028,3030,3031,3034,3035,3037],{},[350,3022,3023],{},"restrictedPage()"," is called only when a ",[350,3026,584],{}," restriction applies, and ",[350,3029,2909],{}," serves every other search. It must call ",[350,3032,3033],{},"$rows->apply()"," on the query it runs: one that returns rows without calling it makes the search throw ",[350,3036,1544],{},". A page takes the keys that it returns as they are.",[1103,3039,3040,3043,3044,1560,3046,3048,3049,3051],{},[350,3041,3042],{},"servesLists()"," on an engine whose profile does not implement ",[350,3045,3001],{},[350,3047,1648],{}," at the first search, and ",[350,3050,1660],{}," reports it.",[1103,3053,3054,3055,361,3057,3060,3061,3063,3064,1120],{},"The interface that writes ",[350,3056,1587],{},[350,3058,3059],{},"nested"," filters is internal to the built-in profiles: a provided profile answers ",[350,3062,2227],{}," for them, as Algolia does, and refuses ",[350,3065,1210],{},[1103,3067,3068,3069,353,3072,3075,3076],{},"A provided profile computes no ",[371,3070,3071],{"href":101},"totals",[350,3073,3074],{},"search.totals"," answers ",[350,3077,3078],{},"The search.totals field is refused: the search engine of this resource computes no totals.",[3080,3081,3082],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":396,"searchDepth":403,"depth":438,"links":3084},[3085,3091,3095],{"id":377,"depth":438,"text":378,"children":3086},[3087,3088,3089,3090],{"id":1170,"depth":464,"text":1171},{"id":1311,"depth":464,"text":1312},{"id":1567,"depth":464,"text":1568},{"id":1606,"depth":464,"text":1607},{"id":1686,"depth":438,"text":1687,"children":3092},[3093,3094],{"id":2254,"depth":464,"text":2255},{"id":2291,"depth":464,"text":2292},{"id":2430,"depth":438,"text":2431,"children":3096},[3097],{"id":2737,"depth":464,"text":2738},"Restrict every search engine query, declare server-only index attributes and lists of strings, and provide the profile of a Scout engine.","md",null,{},{"title":221,"description":3098},{"loc":222,"lastmod":3104},"2026-11-21T13:04:54+01:00","hh3Yx3OTo2X01DTLNbROTHlhhEzvwU0OMXsOulIm47o",[3107,3109],{"title":217,"path":218,"stem":219,"description":3108,"children":-1},"Restrict the perimeter of every resource, add columns for the policies, narrow page sizes per user and add search instructions from an extension.",{"title":225,"path":226,"stem":227,"description":3110,"children":-1},"Prepare and version row checks, add to the keys of kept decisions, declare gates and narrow the fields of a resource for each user from an extension.",1795277216948]