KoboToolbox
  • Home
  • About us
  • Features
  • Services
  • Pricing
  • Blog
  • Help
  • Donate

What do you need help with?

Search the knowledge base, browse our resources, and visit our forum for more detailed information

  • Home

Public Collections Advanced Search¶

Last updated: 4 Mar 2021

Please note that the search capability is a work in progress, and we plan to add a more user-friendly syntax in future releases.

The Default Search Behaviour¶

When you enter a term into the search bar without specifying a field, your query will return results where that term, regardless of capitalization, can be found in:

  • The name of the survey, collection, question, block, or template;

  • The owner’s username;

  • The description;

  • The summary, which contains all question labels and languages;

  • The name of any assigned tag;

  • The object’s UID.

For example, a default search with the term: “examples”, will result in the following:

name__icontains:examples OR owner__username__icontains:examples OR
settings__description__icontains:examples OR summary__icontains:examples OR
tags__name__icontains:examples OR uid__icontains:examples

examples

Valid Search Field Operators¶

The field operator is the value after the last double-underscore in the search field, i.e. __icontains.

  • For case-sensitive text searches, the following operators can be used: contains, exact, startswith

  • For case-insensitive text searches: icontains, iexact, istartswith

  • For numeric search, the following operators are valid: exact, lt, lte, gt, gte

Note that by default the exact operator is set, therefore name:foo is equivalent to name__exact:foo

Understanding the Search Field Syntax¶

The double underscore syntax mimics the behaviour of Django’s object filtering syntax and it allows one to traverse related object relationships and JSON hierarchies, such as those seen at the endpoint:

https://kf.kobotoolbox.org/api/v2/assets/

For example, if an asset has the following settings:

{
    ...
    "settings": {
        ...
        "country": {
            "label": "United States",
            "value": "USA"
        }
        ...
    },
    ...
}

The object could be searched through the following methods:

settings__country__value:USA

examples

Or more loosely:

settings__country__value__icontains:usa

examples

Using the Query Parser¶

Finally, the search fields described above can be combined using the query parser syntax for more refined searches. For example:

owner__username__icontains:foo AND tags__name__icontains:bar

Or:

owner__username__icontains:foo AND NOT tags__name__icontains:bar

examples

Was this article useful?

Did you find what you were looking for? Was the information clear? Was anything missing?
Share your feedback to help us improve this article!

Fill out the short survey here →

Getting Started

  • Basics of KoboToolbox
  • About KoboToolbox: Accessible data collection for everyone
  • Creating an account on KoboToolbox
  • Overview of creating and managing projects in KoboToolbox
  • Quick Start Overview
  • KoboToolbox data security measures: Keeping your data safe
  • Didn’t Receive Activation Link After Signing Up
  • Resetting Passwords
  • General Data Protection Regulation (GDPR)
  • KoboToolbox Training Materials in Arabic
  • KoboToolbox Training Materials in French
  • Recently updated Support Articles

Creating Forms

  • Creating a New Form
  • Editing Forms in Excel using XLSForm
  • Getting started with XLSForm
  • Importing an XLSForm via URL
  • Overview of All Formbuilder Functions
  • List of Question Types
  • Using the Question Options
  • Adding Skip Logic
  • Limiting Responses with Validation Criteria
  • Text and Note question types
  • Acknowledge question type
  • Number, Decimal, and Range Question Types
  • Date and time question types
  • “Photo”, “Audio”, “Video” and “File” question types
  • Rating vs Ranking Question Types
  • “Select One” and “Select Many” question types
  • GPS Question types
  • Calculate Question Type
  • Advanced Calculate Question Type
  • Video Question Type
  • Question Matrix Response Type
  • Adding Skip Logic to a Matrix Question
  • Adding Calculations and Constraints in a Matrix Question
  • Including Responses Inside Another Question
  • Limits on Number and Text Responses
  • User-Specified “Other” Responses for Multiple-Choice Questions
  • Adding Various Types of Media (image, audio, video) to a Form
  • Adding a Custom Logo
  • Adding Cascading Select Questions
  • Grouping Questions and Repeating Groups
  • Restricting Text Responses With Regular Expressions
  • Including P-Codes in the Output Data
  • Creating Unique Serial Numbers in Forms
  • Pull Data Functionality in KoboToolbox
  • Audit Logging Meta Question Type
  • Signature Question Type
  • Adding Another Language in the Project Dashboard
  • Adding Another Language to your XLSForm
  • Form Settings and Metadata
  • Encrypting Forms
  • Custom Formatting in Web Forms
  • What Are Enketo Web Forms?
  • Using Alternative Enketo Web Form Styles
  • Using HXL Tags
  • Lowering the File Size of Collected Media
  • Deploying a Form to Start a New Data Collection Project
  • Using the Question Library
  • Select One or Many From External File Question Type
  • Library locking

Collecting Data

  • Overview on Data Collection Tools
  • Recording an Entire Interview with Background Audio Recording
  • Collecting Data through Web Forms
  • Collecting Data Offline
  • Data Collection on KoboCollect App (Latest Version)
  • Data Collection on KoboCollect App (Older Version)
  • Transferring forms and data manually from one android device to another
  • Recommended Devices for Data Collection
  • HIPAA Compliance
  • Troubleshooting KoboCollect Android Application
  • Troubleshooting Enketo Web Forms
  • Manually Uploading Submissions
  • Collecting GPS Locations

Managing Projects and Data

  • Getting started with the Organizations feature
  • Project Summary
  • Record Validation
  • Deleting a Project
  • Exports Stuck in Pending State
  • Exporting and Downloading Your Data
  • Archiving and Unarchiving Projects
  • REST Services
  • Sharing Your Project and Managing Permissions
  • Viewing and Creating Custom Reports
  • Mapping, Sharing, and Exporting GPS Data
  • Connecting to your data using synchronous exports
  • Connecting KoboToolbox to Microsoft Excel
  • Connecting KoboToolbox to Power BI
  • Editing or Deleting a Single Submission
  • Editing Responses in Multiple Submissions
  • Downloading Photos and Other Media
  • Merging Individual Data with Roster Data through Power Query in Excel
  • Recovering Data From Previous Form Versions
  • Converting Data into SPSS and/or Stata
  • Excel Analyzer User Guide
  • Exporting and Uploading Data to GIS Software
  • Row-Level Permissions
  • Dynamic Data Attachments
  • Using Public Collections
  • Public Collections Advanced Search
    • The Default Search Behaviour
    • Valid Search Field Operators
    • Understanding the Search Field Syntax
    • Using the Query Parser
  • Using the API
  • Data Storage
  • Transcription
  • Qualitative Analysis of Audio Responses
  • KoboToolbox Integration on monday.com

KoboToolbox on Your Computer or Server

  • Software Architecture
  • Installing KoboToolbox on a Local Computer
  • Installing KoboToolbox on Your Own Servers

Questions from the community

For questions, ideas, and announcements on new releases, please head to our Community Forum.

Visit our forum

KoboToolbox is maintained by Kobo Inc.

Terms of Service Privacy Policy