$lexical in collections

$lexical is a reserved field in documents. It stores a string that is indexed and used for the lexical search component of hybrid search. During a lexical search, this string is compared against a search string using keyword matching techniques.

Only collections that have lexical enabled support the $lexical field. For more information, see Create a collection.

In order to be included in a hybrid search, a document must have both the $lexical field and the $vector field populated.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | Privacy policy | Terms of use | Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com