Here is what I have done... Maybe not the best practice (for example, as you 
can see in the previous messages, I could not extend the "resultColumns" and 
get it work properly)


0/ create your schema advanced_search_custom.xsd (have a look at 
advanced_search.xsd), and then make it a DocType :

<doctype name="AdvancedSearchCustom" extends="Document">
      <schema name="advanced_search_custom" />
</doctype>

1/ override the forms : search_simpleform.xhtml (add the fields you defined in 
your schema), documents_table_search_results.xhtml (as I needed to change the 
resultColumns)

2/ Override the ADVANCED_SEARCH queryModel (choose your custom docType, and 
select which fields you need, which ones you don't)

<queryModel name="ADVANCED_SEARCH" docType="AdvancedSearchCustom">

3/ If you want the general search "ecm:fulltext" (all fields) to search in your 
custom fields too, you need to override :
<extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="fullTextField">

Add your custom fields in order them to be taken into account for any simple 
search or advanced search (full text one of - full text all words - full text 
phrase - full text none of)

Hope you'll succeed in making what you re trying to
--
Posted by "rodel" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2030#5625>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to