How i can search with custom properties?

cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Former Member

How i can search with custom properties?

Hi, everyone

I try to search on live search textbox (Up right) and i'm not see result with searching.

I already attached properties configure.


-<imports>

<import prefix="cm" uri="http://www.alfresco.org/model/content/1.0"/>

<import prefix="d" uri="http://www.alfresco.org/model/dictionary/1.0"/>

</imports>


-<namespaces>

<namespace prefix="test" uri="test"/>

</namespaces>

<data-types/>

<constraints/>


-<types>


-<type name="doc1:ID_index">

<title>ID Index</title>

<parent>cm:content</parent>


-<properties>


-<property name="doc1:ID">

<title>ID</title>

<type>d:text</type>

<mandatory>true</mandatory>


-<index enabled="true">

<tokenised>BOTH</tokenised>

<facetable>false</facetable>

</index>

</property>

</properties>

 

Thanks

4 Replies
sanjaybandhniya
Intermediate

Re: How i can search with custom properties?

For Live Search, There are some properties are configured. Ex name

If you want to search by custom property then you need to add those properties.

Ref: https://argondigital.com/blog/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-alfre...

Brayo
Active Member

Re: How i can search with custom properties?


@sanjaybandhniya wrote:

For Live Search, There are some properties are configured. Ex name

If you want to search by custom property then you need to add those properties.

Ref: https://argondigital.com/blog/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-alfre...



Hi, sanjaybandhniya

can you suggest me ? . in my share-config-custom.xml

I already got form UI custom properties but when i search by number or ID or Department properties return result 0

<config replace="true" evaluator="string-compare" condition="AdvancedSearch">
<advanced-search>
<!-- Forms for the advanced search type list -->
<forms>
<form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
<form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
<form labelId="custom" descriptionId="search.form.desc.ID_index_test">test:ID_index_test</form>
</forms>
</advanced-search>
</config>


<config evaluator="model-type" condition="test:ID_index_test">
<forms>
<form id="search">
<field-visibility>
<show id="test:ID" />
<show id="test:num" />
<show id="test:dep" />
</field-visibility>
<appearance>
<field id="test:ID">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="test:num">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="test:dep">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
</appearance>
</form>
</forms>
</config>

Any suggestion idea please

sanjaybandhniya
Intermediate

Re: How i can search with custom properties?

Where you need custom property seach?

Live search or Advance search page?

Brayo
Active Member

Re: How i can search with custom properties?


@sanjaybandhniya wrote:

Where you need custom property seach?

Live search or Advance search page?


Hi, @sanjaybandhniya  , I want to search in advance search. Have any idea?

I already added custom drop down list (custom) and the search form with my custom properties see below

but i got result 0 when i searched some text in my custom properties.

Capture24.PNG

 Capture23.PNG

Thanks