Update: The arXiv has changed their search syntax so that setting it as a search engine for the Google omnibox now works in the conventional way (rendering this question moot).
For the record, this is the string you should use:
https://arxiv.org/search/?query=%s&searchtype=all
If you leave out the "&searchtype=all
" flag, the search will fail to return anything.
If you'd like to complement this search with a Google search of the arXiv.org site (as suggested by @Arctiic in the comments), use this string:
https://www.google.com/search?q=%s+site%3Aarxiv.org
Old question:
I would like to be able to search the academic preprint server The arXiv from the Chrome omnibox. The actual search box I am trying to replicate can be found in the upper-right-hand corner of the arXiv.org homepage. (It's labeled "Search or Article-id".)
General instructions for adding new Chrome search engines can be found here. However, right-clicking on this arXiv box does not bring up the prompt "add as search engine". Instead, the arXiv website appears to use an unusual URL syntax, presumably created by some JavaScript on the page, such that I cannot manually use the url.com/search?q=%s
syntax.
Searching for the string The quick brown fox
is equivalent to entering the URL
http://arxiv.org/find/all/1/all:+AND+fox+AND+brown+AND+The+quick/0/1/0/all/0/1
which has the boolean operator AND
inserted all over the place, along with +
's.
For someone like me with essentially no knowledge of JavaScript, is there a way to add arXiv search functionality to the omnibox in Chrome?
site:arxiv.org
operator? Otherwise, if you absolutely must have arXiv as a search engine entry via omnibox, I can only suggest: 1) find (or politely ask their web dev) for the parsing logic utilized when their URI...query(?? or path?) gets encoded from the search string input. 2) Politely ask their web dev "wtf were you thinking?!" 3) Find a way to automate or intercept the search input flow such that the string is modified accordingly. But wait, then you don't even need the search engine part, you just generate the URI.