aikau - customize simple search alfresco community 5 -


alfresco simple search field searches on document content , folders default.

because i'm thinking of using tag taxonomy default simple search field search on tags without using "tag:" prefix , exclude content , folders. content , folders can stay search option in advanced search.

the default query looks this:

  cm:name cm:title cm:description my:authorisedby    ia:whatevent ia:descriptionevent lnk:title    lnk:description text  tag 

can give me idea how query can modified search on tags?

i'm going assume "simple search" you're referring search box in header bar displayed in share. rendered aikau widget alfresco/header/searchbox , provides number of options customizations.

i think best option going to extend default widget own version , override generatesearchterm function. allow take term provided (e.g. whatever user has entered search box) , manipulate additional advanced search text before used in calls search rest apis.

this old blog post provides , example of extending widget, however should use approach outlined in this blog post add custom package (rather editing surf.xml directly)


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -