x["id"]=key;// minisearch requires a unique for each object
returnx;
returnx;
});
});
// list below is the lunr 2.1.3 list minus the intersect with names(Base)
// (all, any, get, in, is, only, which) and (do, else, for, let, where, while, with)
// ideally we'd just filter the original list but it's not available as a variable
conststopWords=newSet([
"a",
"able",
"about",
"across",
"after",
"almost",
"also",
"am",
"among",
"an",
"and",
"are",
"as",
"at",
"be",
"because",
"been",
"but",
"by",
"can",
"cannot",
"could",
"dear",
"did",
"does",
"either",
"ever",
"every",
"from",
"got",
"had",
"has",
"have",
"he",
"her",
"hers",
"him",
"his",
"how",
"however",
"i",
"if",
"into",
"it",
"its",
"just",
"least",
"like",
"likely",
"may",
"me",
"might",
"most",
"must",
"my",
"neither",
"no",
"nor",
"not",
"of",
"off",
"often",
"on",
"or",
"other",
"our",
"own",
"rather",
"said",
"say",
"says",
"she",
"should",
"since",
"so",
"some",
"than",
"that",
"the",
"their",
"them",
"then",
"there",
"these",
"they",
"this",
"tis",
"to",
"too",
"twas",
"us",
"wants",
"was",
"we",
"were",
"what",
"when",
"who",
"whom",
"why",
"will",
"would",
"yet",
"you",
"your",
]);
// list below is the lunr 2.1.3 list minus the intersect with names(Base)
letindex=newminisearch({
// (all, any, get, in, is, only, which) and (do, else, for, let, where, while, with)
fields:["title","text"],// fields to index for full-text search
// ideally we'd just filter the original list but it's not available as a variable
storeFields:["location","title","text","category","page"],// fields to return with search results
conststopWords=newSet([
processTerm:(term)=>{
"a",
letword=stopWords.has(term)?null:term;
"able",
if(word){
"about",
// custom trimmer that doesn't strip @ and !, which are used in julia macro and function names
"across",
word=word
"after",
.replace(/^[^a-zA-Z0-9@!]+/,"")
"almost",
.replace(/[^a-zA-Z0-9@!]+$/,"");
"also",
}
"am",
"among",
returnword??null;
"an",
},
"and",
// add . as a separator, because otherwise "title": "Documenter.Anchors.add!", would not find anything if searching for "add!", only for the entire qualification
"are",
tokenize:(string)=>string.split(/[\s\-\.]+/),
"as",
// options which will be applied during the search
"at",
searchOptions:{
"be",
boost:{title:100},
"because",
fuzzy:2,
"been",
"but",
"by",
"can",
"cannot",
"could",
"dear",
"did",
"does",
"either",
"ever",
"every",
"from",
"got",
"had",
"has",
"have",
"he",
"her",
"hers",
"him",
"his",
"how",
"however",
"i",
"if",
"into",
"it",
"its",
"just",
"least",
"like",
"likely",
"may",
"me",
"might",
"most",
"must",
"my",
"neither",
"no",
"nor",
"not",
"of",
"off",
"often",
"on",
"or",
"other",
"our",
"own",
"rather",
"said",
"say",
"says",
"she",
"should",
"since",
"so",
"some",
"than",
"that",
"the",
"their",
"them",
"then",
"there",
"these",
"they",
"this",
"tis",
"to",
"too",
"twas",
"us",
"wants",
"was",
"we",
"were",
"what",
"when",
"who",
"whom",
"why",
"will",
"would",
"yet",
"you",
"your",
]);
letindex=newminisearch({
fields:["title","text"],// fields to index for full-text search
storeFields:["location","title","text","category","page"],// fields to return with search results
processTerm:(term)=>{
processTerm:(term)=>{
letword=stopWords.has(term)?null:term;
letword=stopWords.has(term)?null:term;
if(word){
if(word){
// custom trimmer that doesn't strip @ and !, which are used in julia macro and function names
word=word
word=word
.replace(/^[^a-zA-Z0-9@!]+/,"")
.replace(/^[^a-zA-Z0-9@!]+/,"")
.replace(/[^a-zA-Z0-9@!]+$/,"");
.replace(/[^a-zA-Z0-9@!]+$/,"");
@ -192,92 +160,210 @@ $(function () {
returnword??null;
returnword??null;
},
},
// add . as a separator, because otherwise "title": "Documenter.Anchors.add!", would not find anything if searching for "add!", only for the entire qualification