Host FlexSearch
This commit is contained in:
29
paige/node_modules/flexsearch/src/lang/cyrillic/default.js
generated
vendored
Normal file
29
paige/node_modules/flexsearch/src/lang/cyrillic/default.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import { IndexInterface } from "../../type.js";
|
||||
import { pipeline } from "../../lang.js";
|
||||
|
||||
export const rtl = false;
|
||||
export const tokenize = "";
|
||||
export default {
|
||||
encode: encode,
|
||||
rtl: rtl
|
||||
}
|
||||
|
||||
const regex = /[\x00-\x7F]+/g;
|
||||
const split = /\s+/;
|
||||
|
||||
/**
|
||||
* @param {string|number} str
|
||||
* @this IndexInterface
|
||||
*/
|
||||
|
||||
export function encode(str){
|
||||
|
||||
return pipeline.call(
|
||||
|
||||
this,
|
||||
/* string: */ ("" + str).replace(regex, " "),
|
||||
/* normalize: */ false,
|
||||
/* split: */ split,
|
||||
/* collapse: */ false
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user