I do use the hg.nuxeo.org repo and found a similar example there using 
org.nuxeo.ecm.core.search.service.SearchServiceImpl. 

I am running 5.2 using VCS with Postgres. 

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"
>
        <schema name="postcommon" src="schemas/postcommon.xsd" prefix=
"pcom"/> 
        <schema name="challengepost" src="schemas/challengepost.xsd" 
prefix="cpost"/>
        <schema name="responsepost" src="schemas/responsepost.xsd" prefix=
"rpost"/>
  </extension>

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point=
"doctype">
    <doctype name="ChallengePost" extends="Document">
      <schema name="common"/>
      <schema name="dublincore"/>
      <schema name="postcommon"/>
      <schema name="challengepost"/>
      <schema name="files"/>
      <schema name="uid"/>
      <facet name="Versionable"/>
      <facet name="Publishable"/>
      <facet name="Commentable"/>
      <facet name="Indexable"/>
    </doctype> 
 
    <doctype name="ResponsePost" extends="Document">
      <schema name="common"/> 
      <schema name="dublincore"/>
      <schema name="postcommon"/>
      <schema name="responsepost"/>
      <schema name="files"/>
      <schema name="uid"/>
      <facet name="Versionable"/>
      <facet name="Publishable"/>
      <facet name="Commentable"/>
      <facet name="Indexable"/>
    </doctype> 
 
  </extension>

Regards,
Bruce.




From:
Florent Guillaume <[email protected]>
To:
Bruce Grant <[email protected]>
Cc:
[email protected]
Date:
09/18/2009 11:05 AM
Subject:
Re: [Ecm] Adding a contributed doctype to Advanced Search



The svn repo is now completely outdated. You should use hg.nuxeo.org.
Furthermore, org.nuxeo.ecm.core.search.service.SearchServiceImpl is
outdated as well when you use Nuxeo 5.2 with VCS.

What's your config exactly? Could you give an example of custom doc
type declaration that you have (the one defining the type/doctype
itself)?

Florent


On Fri, Sep 11, 2009 at 1:51 PM, Bruce Grant <[email protected]> 
wrote:
> The search scope for Advanced Search doesn't appear to automatically 
include
> contributed doc types, although simple search does. I tried advanced 
search
> with no parameters and all base document types (including workspaces,
> sections, folders and files) are returned, but my contributed types are 
not.
>
> I added a search-contrib.xml and added to the MANIFEST file. Tried a 
number
> of things ... this version is based on an article i found in the SVN 
repo on
> the nuxeo site.
>
> <component name="ca.metalogic.emailarchive.search">
>
>          <extension
> target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
> point="indexableDocType">
>                    <indexableDocType name="EmailArchive"
> indexAllSchemas="true"></indexableDocType>
>          </extension>
>
>        <extension
> target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
> point="resource">
>                <resource name="emailarchive" prefix="ema" type="schema"
> indexAllFields="true"></resource>
>        </extension>
>
>          <extension
> target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
> point="fullTextField">
>        <fullText name="ecm:fulltext" analyzer="default"
> blobExtractorName="nuxeoTransform">
>                <field>emailarchive:subjectLine</field>
>                <mimetype name=".*/.*">any2text</mimetype>
>              </fullText>
>          </extension>
>
> </component>
>
> To start, I just want to see my custom docs returned when I perform an
> advanced search with no parameters.
>
> Thanks,
> Bruce.
>
> --------------------
> metaLogic
> ph. +1.905.629.7775 x225
> fax +1.905.629.9887
> http://metaLogic.ca
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
> To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
>
>



-- 
Florent Guillaume, Head of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to