AnsweredAssumed Answered

fts-alfresco search multi value property

Question asked by raaftjon on Jun 10, 2013
Latest reply on Jun 13, 2013 by avyaznikov
hello
I have a own alfresco model type with a multi value property like this:


  <type name="test:document">
    <title>Test Dokument</title>
    <description>Ein test Dokument</description>
    <parent>cm:content</parent>
    <property name="test:values">
      <type>d:int</type>
      <mandatory>false</mandatory>
      <multiple>true</multiple>
      <index enabled="false"></index>
    </property>
  </type>


It's possible to create a fts-alfresco search query for this multi value property?
e.g.

The Requirements are to search all test:document with a test:values of 1, 2 or 5.
<javascript>
var def = {
  query: 'TYPE:"test:document" and @test:values:[1,2,5]',
  language: 'fts-alfresco'
};
var nodes = search.query(def);
</javascript>

Kind regards,
Jonas Schmid

Outcomes