question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with search function

See original GitHub issue

Hi @fergiemcdowall, Something strange has happened with my code and right now I can search only if I’ll type full text. For example:

si.add([
  {date: 1464122926, text: 'some text'},
  {date: 1464122916, text: 'some another text'}
],
function (err) {
  if (! err) {
    var q = {}; 
    q.query = { AND: [{'*': ['text']}] };
    si.search(q, function (err, results) {
       console.log(results);
    })
  }
})

In this case I’ll get empty result, but if I’ll change query to q.query = { AND: [{'*': ['some text']}] }; it will give me results. Thanks for help

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Feelnoobskillcommented, May 30, 2016

Yes, finally. Many thanks But its weird, because it worked earlier without adding space char

1reaction
fergiemcdowallcommented, May 30, 2016

and btw: thanks for formatting your code- much easier to read!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Search Not Working? Try These Fixes - Lifewire
When Windows search isn't working, it's almost always a simple software problem. The system may just need a restart to get it working...
Read more >
How to fix search problems in Windows 10
Search on Windows 10 refuses to work? Here are six sets of instructions to resolve the most common problems with the Windows Search...
Read more >
How to fix search problems in Windows 10 - TechRadar
The easiest way to fix search problems in Windows 10 is by using the built-in troubleshooter. To launch the troubleshooter, open up the...
Read more >
Fix: Windows Search Not Working Problem - Techbout
If Windows Search is not working on your computer, try Search & Indexing Troubleshooter, Restart Windows Search Services and Windows Explorer.
Read more >
7 Ways to Troubleshoot If Outlook Search Is Not Working
Ensure that Outlook is being indexed for search. Outlook has its own search settings you can check as well. One of the most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found