Searching for numbers
See original GitHub issueWhen I search for a field which contains a number, the result is an empty array, I feel that there must be a very clear point that I am missing, could you explain the behaviour? Thank you very much.
const test = [
{
data: {
id: 0,
name: "foo",
val: 1
}
},
{
data: {
id: 1,
name: "bar",
val: 2
}
}
]
const index = new FlexSearch({
async: true,
doc: {
id: "data:id",
field: ["data:name", "data:val"]
}
});
index.add(test);
index
.search(1, {
field: "data:val"
})
.then(result => {
console.log(result);
//returns empty array
});
index
.search("bar", {
field: "data:name"
})
.then(result => {
console.log(result);
//returns the object it found
});
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Searching in Numbers - Apple Community
Searching in Numbers. Cannot search a number f ex 23, it finds 2300 etc. I just want to find 23.
Read more >Searching for Numbers in Amazon CloudSearch
Search a numeric field for a particular value or range of values using a structured query. ... Searching for Numbers in Amazon CloudSearch....
Read more >Searching with numbers | Proceedings of the 11th ...
Searching with numbers. Authors: Rakesh Agrawal ... We give algorithms and indexing structures for implementing the search.
Read more >Search/Browse Help - Numbers Found in LC Catalog Records
LCCN keyword searches can be combined with searches for data found in other fields of the record. Search truncation and wild cards are...
Read more >Creating Searchable Databases In Numbers (#1696) - YouTube
https://macmost.com/e-1696 If you have a large Numbers table and regularly search and filter it, you may want to use a formula and a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@maazkabir Sorry for replying 6 months later. I did not find a solution so I switched to Fuse.Js.
Please use a custom “encode” function which allows special chars like “.” or “/”