On Wed September 26 2007 2:54:36 am Anahide Tchertchian wrote: > Hi, > > > > 2) Try as I could, I can't get the sample1 or sample2 fields to show > > up for searching in the Advanced Search box. I tried adding this to > > my OSGI-INF/core-types-contrib.xml file: > > > > <extension > > target="org.nuxeo.ecm.core.search.service.SearchServiceImpl" > > point="indexableDocTyp"> > > <indexableDocType name="Sample" indexAllSchemas="true"/> > > </extension> > > > > but it didn't help. What am I missing? > > This will index the Sample schema (provided you fix the typo on > point="indexableDocType"), you will be able to use it in queries.
I fixed that typo, but I still can't do a full text search that includes it, nor does it show up in the advanced search. > If you're talking about making it available on the advanced search form, > I will let others answer that. If it's about making it available in the > full text search, you need to register your fields on another extension > point, see "fullTextField" here: (there is no example on the sample > module) > http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.ecm.platform/trunk/nuxeo >-platform-search-core/src/main/resources/OSGI-INF/nxsearch-contrib.xml I added: <extension target="org.nuxeo.ecm.core.search.service.SearchServiceImpl" point="fullTextField"> <fullText name="ecm:fulltext" analyzer="default" blobExtractorName="nuxeoTransform"> <field>smp:sample1</field> <mimetype name=".*/.*">any2text</mimetype> </fullText> </extension> I'm only guessing that this "smp" comes from the prefix for the schema. This still didn't fix it. I am also seeing this on stdout: 09:59:01,646 WARN [ChainSelectListboxComponent] directoryName is null for index 0. try to retrieve from parent I have no idea if this is relevant. So, I can put text in the sample1 field, and I can't locate it using the simple search box or the top line of the advanced search box. I also don't see them in the "Search Result Columns" area. I also tried adding this: <extension target="org.nuxeo.ecm.core.search.service.SearchServiceImpl" point="resource" type="schema"> <resource name="sample" prefix="smp" indexAllFields="true"> <field name="sample1" analyzer="default" stored="true" indexed="true" type="Text" binary="false" sortable="true"/> </resource> </extension> This didn't make any difference, other than NullPointerExceptions started appearing on stdout during a reindex operation. So I am stuck again. Thanks for the pointers on this. -- John _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
