Giter VIP home page Giter VIP logo

everythingsearchclient's People

Contributors

sgrottel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hnjm lvjunlei

everythingsearchclient's Issues

Reuse MessageOnly Window to receive Query Results

The Query Results are received via IPC to a MessageOnly Window, and a Thread handling timeout behavior. Those are always created and destroyed for every Query. Especially when using paged-queries of a large number of files, those should be reused.

  • Introduce a heuristic when to reuse the window & message/wait thread.
  • Refactor code to more easily manage window & message/wait thread.
  • Reuse window & message/wait thread for consecutive queries.

Closing the application must not be blocked or significantly slowed down.

Test Failure - EverythingSearchClient.TestProject.TestBusyBehavior.TestMethodWaitOrErrorWhenBusy

On some, slow CI VMs this test fails.
Timeout?

D:\a\EverythingSearchClient\EverythingSearchClient\TestProject\bin\Release\net6.0-windows\TestProject.dll
  Failed TestMethodWaitOrErrorWhenBusy [7 m 22 s]
  Error Message:
   Test method EverythingSearchClient.TestProject.TestBusyBehavior.TestMethodWaitOrErrorWhenBusy threw exception: 
System.Exception: Everything service is busy
  Stack Trace:
      at EverythingSearchClient.SearchClient.Search(String query, SearchFlags flags, UInt32 maxResults, UInt32 offset, BehaviorWhenBusy whenBusy, UInt32 timeoutMs) in D:\a\EverythingSearchClient\EverythingSearchClient\EverythingSearchClient\SearchClient.cs:line 139
   at EverythingSearchClient.SearchClient.Search(String query, BehaviorWhenBusy whenBusy, UInt32 timeoutMs) in D:\a\EverythingSearchClient\EverythingSearchClient\EverythingSearchClient\SearchClient.cs:line 247
   at EverythingSearchClient.TestProject.TestBusyBehavior.TestMethodWaitOrErrorWhenBusy() in D:\a\EverythingSearchClient\EverythingSearchClient\TestProject\TestBusyBehavior.cs:line 64

Making API1 vs. API2 selectable

Some features are only available via search api Query 2.
The fallback is nice, most of the time not needed, and it should be able to opt-out of it.

Sorting

Rational: when querying paged results, it does make sense to request them in a sorted order.

Nuget Targetting DotNet6-Windows

The main core classes of the project work on the Windows-Platform only, because of specific P/Invoke, anyway. While the original idea was to keep the interfaces platform-independent, and to later add alternative implementations for other platforms, this is not going to happen anytime soon. So, let's make this a bit cleaner and make the whole package target Windows OS only, for now.

While the project already does this correctly, the nuget package does not.

Bug: Be robust against invalid time codes

search.Search("empty:");

Triggers in MessageReceiverWindow::ParseResultDataVersion2() an exception at:

createDate = DateTime.FromFileTime(timecode);

because timecode is -1

Reenable CT

Tests on Github Actions currently disabled, because Everything service can no longer be used.

Find a light-weight configuration for Everything or a strong VM to run CT on.

Bug: `Search` Sometimes Never Returns, Timeout Does Not Work

In one of my application I do paged-queries like this:

result = everything.Search(query, QueryPageSize, offset, timeoutMs: QueryTimeoutMs);

QueryTimeoutMs is set to 10000.
Sometimes this call does not return ... ever.

I have seen such behavior in the context of debugging with break points.
The IPC answer message likely "got lost".
The timeout mechanism is meant to provide an exit path in this case.
This is likely what's happening here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.