Documentation for search query language syntax
Related D5990
Differential D6005
docs/query-language: Describe search query language syntax KShivendu on Jul 17 2021, 9:40 PM. Authored by
Details
Documentation for search query language syntax Related D5990
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D6005 (id=21680)Rebasing onto fe7640f710... Current branch diff-target is up to date. Changes applied before testcommit 1bc86d5bce31637c876ee6bc71576ac2024122d5 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Sun Jul 18 01:09:12 2021 +0530 docs/query-language: Describe search query language syntax Summary: Documentation for search query language syntax Test Plan: Reviewers: Subscribers: Link to build: https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/217/ Comment Actions Build is green Patch application report for D6005 (id=21681)Rebasing onto fe7640f710... Current branch diff-target is up to date. Changes applied before testcommit d4a246fe732fb360711d0155bb63168c56bd3934 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Sun Jul 18 01:09:12 2021 +0530 docs/query-language: Describe search query language syntax Documentation for search query language syntax See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/218/ for more details. Comment Actions Some aspects of the query language that I'm still thinking about :
@zack @vlorentz @anlambert References :
Comment Actions thanks @KShivendu, this is a great start! I'm requesting changes on various things. There is also an important open question about general boolean AND/OR queries.
Comment Actions
Comment Actions Build is green Patch application report for D6005 (id=21713)Rebasing onto fe7640f710... Current branch diff-target is up to date. Changes applied before testcommit 3e3f9f6909abb4667f4aa8869e84be7ac38f1b7d Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Sun Jul 18 02:25:14 2021 +0530 docs: Update query-language specs commit d4a246fe732fb360711d0155bb63168c56bd3934 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Sun Jul 18 01:09:12 2021 +0530 docs/query-language: Describe search query language syntax Documentation for search query language syntax See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/219/ for more details.
Comment Actions
Comment Actions Build is green Patch application report for D6005 (id=21733)Rebasing onto d58705a0eb... First, rewinding head to replay your work on top of it... Applying: docs/query-language: Describe search query language syntax Applying: docs: Update query-language specs Applying: docs/query-language: Use 'and' and 'or' Changes applied before testcommit 0a3c5ab8c1984fa469a8d71f3491f9b98d711651 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Thu Jul 22 10:33:10 2021 +0530 docs/query-language: Use 'and' and 'or' commit bdcb46bc73df214f16c216dfd7197d9d2de18478 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Sun Jul 18 02:25:14 2021 +0530 docs: Update query-language specs commit 43cca34200299c576ccf8f2e8865d4b5e9d1bece Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Sun Jul 18 01:09:12 2021 +0530 docs/query-language: Describe search query language syntax Documentation for search query language syntax See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/225/ for more details. Comment Actions LGTM. I'm accepting this diff, but note that I've added a few suggestions for improved language above. Please integrate them before this is final.
Comment Actions Build is green Patch application report for D6005 (id=21735)Rebasing onto d58705a0eb... First, rewinding head to replay your work on top of it... Applying: docs/query-language: Describe search query language syntax Changes applied before testcommit 68ebc3f7f751a7685e2774b9ab8b49bbae0870f6 Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Sun Jul 18 01:09:12 2021 +0530 docs/query-language: Describe search query language syntax Documentation for the proposed search query language See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/226/ for more details. Comment Actions Build is green Patch application report for D6005 (id=21736)Rebasing onto d58705a0eb... Current branch diff-target is up to date. Changes applied before testcommit 4e453304ade0c63657a913f515b66737ee69dfcb Author: KShivendu <shivendu@iitbhilai.ac.in> Date: Sun Jul 18 01:09:12 2021 +0530 docs/query-language: Describe search query language syntax Documentation for the proposed search query language See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/227/ for more details. |
Thanks for adding the explicit AND/OR operators. However, I think the C-like choice of && and || is bad for users. It's too programmer-oriented, and we will have users from other domains. They are also unusual in web search languages, where words are more common. Finally, they are hard to type on some keyboard layouts.
I propose to use explicit and and or instead (and in the future not for negation).
They are common stop words, so in most cases not being able to use them as search terms will not be a big deal.
But we need a way to allow to search for them if someone really wants to. One way would be to say that when they appear in quotes they are not operators but terms, e.g., one will be allowed to search for "and" and "or" in order to search for origins that contain both "and" and "or" as strings.
Alternatively we will need an explicit escape symbol, like \and, \or, \not.
I don't particularly care between these two alternatives.