> FT.CREATE idx1 NOHL NOFREQS SCHEMA f1 TEXT NOSTEM
> FT.ADD idx1 doc1 1 FIELDS f1 aa.bb
> FT.ADD idx1 doc2 1 FIELDS f1 aa
> FT.ADD idx1 doc3 1 FIELDS f1 cc.aa
This search returns all 3 documents because "aa" is recognised as a term in all of them.
> FT.SEARCH idx1 @f1:aa
But in my case I may have thousands of "aa.bb" and a few "aa" mixed in between them. How can I query only those where f1=="aa"?
Note that some of SQL mappings here are incorrect in this sense. E.g. @x:foo and WHERE x='foo' have different semantics.
27.0.0.1:6379> FT.CREATE idx1 NOHL NOFREQS SCHEMA f1 TAG
OK
127.0.0.1:6379> FT.ADD idx1 doc1 1 FIELDS f1 aa.bb
OK
127.0.0.1:6379> FT.ADD idx1 doc2 1 FIELDS f1 aa
OK
127.0.0.1:6379> FT.ADD idx1 doc3 1 FIELDS f1 cc.aa
OK
127.0.0.1:6379> FT.SEARCH idx1 @f1:{aa}
1) (integer) 1
2) "doc2"
3) 1) "f1"
2) "aa"
--
You received this message because you are subscribed to the Google Groups "RediSearch Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redisearch+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redisearch/54c9d76e-f81a-473b-9e20-daa0729b6fb8%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "RediSearch Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redisearch+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redisearch/54c9d76e-f81a-473b-9e20-daa0729b6fb8%40googlegroups.com.
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more Click Here.