cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make full text search of Nuxeo Object property which is list?

kasaba_
Champ in-the-making
Champ in-the-making

Hi, fellows. That is schema declaration of that property.

  <?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://a.com/annotationThread" xmlns:anot="http://a.com/annotationThread">
	<xs:include schemaLocation="base.xsd" />
	
  <xs:simpleType name="catList">
    <xs:list itemType="xs:string" />
  </xs:simpleType>
	
	<xs:element name="categories" type="anot:catList"/>
</xs:schema>

What nuxeo file configuration should be done and what query has to be done, so I can use full text search in my defined list?

Something like that:

SELECT * FROM ImageAnnotationThread WHERE ecm:fulltext.annotationThread:categories/* = 'something'
1 REPLY 1

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

If you want to create a dedicate index for your schema look there: http://doc.nuxeo.com/x/hwQz

About NXQL Query generation: http://doc.nuxeo.com/x/ggU7

Hope this will help.