Hi,

I found what I was doing wrong : in the search popup I specifies a part of the title of the document I am looking for, without specifying any '*', I thought it was done automatically. Maybe some examples of search string could be shown under the search text box, it could help 'dumb' users like me. Or maybe I am too dumb ;-)

Thanks for your support.

Anahide Tchertchian wrote:
I forgot to mention that self-relations are not allowed.
So you should create another document of your type to see if it is found.
If it still doesn't work, I suggest you try the following request in the search interface, logged in as an administrator :

SELECT * FROM Document WHERE ecm:fulltext LIKE 'test' AND ecm:mixinType != 'Folderish' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0

You'll have to create a document of your type with title 'test' to match it. You can also use 'tes*' in the query, instead of 'test'.

If your custom documents are not found, then it's an indexing problem.

Vincent Dutat a écrit :
My custom document type does not have these facets so my documents should be found. Here is the document type definition :

<extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
    <doctype name="PV" extends="Document">
      <schema name="common"/>
      <schema name="file"/>
      <schema name="dublincore"/>
...
      <facet name="Downloadable"/>
      <facet name="Versionable"/>
      <facet name="Commentable"/>
      <facet name="Publishable"/>
    </doctype>


Anahide Tchertchian wrote:
Hi,
The query performed on the relations interface ignores documents that:
- have the 'Folderish' facet (these documents do not have a 'relations' tab).
- have the 'HiddenInNavigation' facet.

Maybe your custom document type does not fall under these criteria?

You can change this behaviour rewriting what's in the nuxeo-platform-relations-web module: method RelationActionsBean.searchDocuments, called in the create_relations_search_document_popup.xhtml template.

Regards,

Vincent Dutat a écrit :
Hi,

in the realtion tab, I want to create a relation to a document that has a custom document type, I click on the 'search' button and type a part of the title of the document and that document is never found. Did I miss something regarding indexation of my custom document type ?

Regards.






--


Vincent Dutat

for any given software, the moment you manage to master it, a new
version appears.

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to