1

I went to the Web Administrator > Services > Search.

I manually create a collection with:

  • name "articoli"
  • path (a fake one, e.g. /tmp)
  • Italian language

Then in my indexer template:

<cfquery name="qry">
    SELECT * FROM articoli 
</cfquery>
<cfindex action="update" 
         collection="articoli"
         key="artid"
         type="custom"
         title="artcod"
         query="qry"
         body="artdes" />

Result: collection articoli is undefined

Any ideas? Other ways for indexing with RAILO+Lucene?

EDIT:

I am using Railo 3.3 (old version). Is this kind of indexing available?

Jeromy French
  • 11,812
  • 19
  • 76
  • 129
Fabio B.
  • 9,138
  • 25
  • 105
  • 177

1 Answers1

1

Checking the Railo source for v3.3 indicates that the error "collection articoli is undefined" will occur if the collection named doesn't exist - a simple search reveals only one instance of a "collection X is undefined" error message).

This suggests that either the name does not match what you typed into the web administrator, or that you created the articoli collection in a different web administrator to where you are running the code.

Peter Boughton
  • 110,170
  • 32
  • 120
  • 176