-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser Search and Autosuggest support #42
Comments
Hi Brandon, I'm sorry that I didn't get the point. Currently, the server API is http://127.0.0.1:3030/query/%s (or http://localhost:3030/query/%s ) Can you explain a bit more that what API you're expecting? |
Providing such an API allows me to type "<engine-prefix> what I am looking for" and the results are listed as suggestions here in the browser. In this case I am using "d" for a DuckDuckGo search. But it would be nice to be able to prefix a search with "l" for Logseq and be able to click or enter on a suggestion to be taken directly to the matching page in Logseq. |
Hi Brandon, To make our discussion clear, I just created a server doc https://github.com/Endle/fireSeqSearch/blob/master/docs/server.md
Do you mean that is something like Google's I'm feeling lucky? Instead of giving a list, it would re-direct you to logseq immediately. It's not difficult for me to add it at server side. However, I'm a bit uncertain with this idea. My current experience is that false positive rate is quite high[1], and it's very common that the top hit is not what I want. As you might use another way to use logseq, the top hit quality might be better or worse than mine. If you'd like to have a try, I'll add an endpoint. Can I use the address http://127.0.0.1:3030/lucky_query/%s [1]: I'm not to blame tantivy. I think I should adjust the configuration a bit.
Now I got your point. It is very interesting, and I've been attracted to it. I'll try to implement it, but I don't know how yet. Please don't take it as a promise. I still have questions: who (which software) would read this endpoint? Browser? macOS? Can I use an endpoint like |
The idea here is to use the browser’s UI as an alternative search interface. So the “Suggestions” list are actual results (ie Logseq page names) and then clicking that suggestion/result takes you to the Logseq page. So it would have to behave in a way that redirects to the app. Maybe it is not the right fit for this software but it seems cool that it is technically possible. |
Hi,
Nope. I think this feature is very interesting. As I mentioned, I'll try to implement it, but I don't know how yet. Please don't take it as a promise.
Here is my blocker. I have no knowledge about what the browser expects me to do. Could you make a PR to https://github.com/Endle/fireSeqSearch/blob/master/docs/server.md ? |
Okay, I submitted the PR. It took some time to figure out where this format is defined as Amazon has repurposed the opensearch.org domain but the format has been stable to the spec for the last decade. Vivaldi appears to only use the required fields in the spec which is why the lucky endpoint is also required. Here are some other references I came across |
Thank you so much! The reference you shared and your PR is super helpful for me. I'll be working on it right now, although I couldn't provide timeline for it |
It would make several further changes easier, especially #42
Hi @brandonkal Merry Christmas and Happy Holidays. I'm afraid that I misunderstood your request at the very beginning. Please let me confirm a question with such an example Assume in your logseq notebook, you have a few notes with titles Also, the word "apple" appears in such notes When you use the endpoint
Is my interpretation correct? |
Provide the following API endpoints:
http://localhost/?q=%s
where that page is a result is a redirect to the first matching logseq page (logseq app link)
Provide an API endpoint on the server in the form of
http://localhost/ac/?q=%s
Where %s is the search term. For example the endpoint would return the following list for "apple"
Where "apple" is the search query and the other list items are results (as suggestions)
This would allow searching Logseq directly from the browser's address bar. i.e. LTab
apple
The text was updated successfully, but these errors were encountered: