I have used the collection tags and get the same result.
There is an entry in the bluedragon.xml for the collection:
<cfcollection>
<collection name="newcollection">
<name>newCollection</name>
<storebody>false</storebody>
<relative>false</relative>
<path>C:\Program Files\Apache Software Foundation\Tomcat
7.0\webapps\exchangenew\WEB-INF\bluedragon\work\cfcollection\newCollection</path>
<language>english</language>
</collection>
</cfcollection>
Shouldn't the administrator set things up properly?
On Tuesday, 12 January 2016 04:08:16 UTC-8, Simon Dawdry wrote:
>
> Hi Magnus,
>
> I've also come across this working with search collections, I don't use
> the adminstrator to create them though, instead favouring the search
> collection functions in OpenBD. Search collections need to be listed in
> the bluedragon.xml, especially if you have to restart your server -- the
> search collection files will be created in the bluedragon working directory
> unless you specify a path, but without a reference in the bluedragon.xml
> they don't get recognised on startup or if OpenBD is already running. If
> you create a collection, then restart OpenBD, the collection will be there,
> but the engine has always needed an entry added in bluedragon.xml and a
> restart to pick up on them in my experience.
>
> collectionList() is useful for viewing which collections you have,
> collectionCreate( name="collection1" ) is all you really need to get going,
> same arguments as the fields you see in your screenshot of the
> administrator -- http://openbd.org/manual/?/function/category/search has
> plenty of info on the search collection functions. Here's an example
> bluedragon.xml entry, goes in at the same level as system, file, cfquery
> etc.
>
> <server>
> <system>...</system>
> <file>...</file>
> <cfcollection>
> <collection name="collection1">
> <name>collection1</name>
> <storebody>false</storebody>
> <relative>false</relative>
> <path>$/path/to/working/directory</path>
> <language>english</language>
> </collection>
> </cfcollection>
> <cfquery>etc...</cfquery>
> </server>
>
> Admittedly it's not the most straightforward workflow but once it's done,
> it does work. The one caveat is creating collections dynamically, you can
> create them but the corresponding bluedragon.xml entry is still a manual
> process and as such you lose the reference to them following a restart if
> you don't add them in.
>
> Hopefully this'll get you going with searches again!
>
> Thanks,
> Simon.
>
>
>
>
>
> .signature {
> *name* : Simon Dawdry;
> *title* : Web Development Manager;
> *company* : aw2.0 Ltd <http://aw20.co.uk/>;
> }
>
>
> On 12 January 2016 at 05:22, Magnus <[email protected] <javascript:>>
> wrote:
>
>>
>> <https://lh3.googleusercontent.com/--Fh5NsaQk1k/VpSMEGZQqxI/AAAAAAAAApc/b7DZTrybwHc/s1600/ManageSearchCollections.jpg>
>> I am having trouble setting up a search collection. I am just using the
>> OpenBD administrator to add a new Collection but I get a odd result. In the
>> picture above, I have just used the form to add a new colection called
>> 'newCollection'. As you can see, it tells me the collection was sucessfully
>> added and then, that no collection can be found. As ecpected, any code run
>> against this errors with no collection found.
>>
>> I get the same problem on multiple sites on the same server and on
>> installs on every other machine I have access to that I have put OpenBD on.
>> All are running OpenBD 3.1, with Tomcat (6 or 7) and Apache. I can't get it
>> working anywhare.
>>
>> I have also rtried this programmatically, and get the same errors. In
>> fact I first encountered this a while bvack after upgrading a production
>> server and posted about it here:
>> https://groups.google.com/forum/#!searchin/openbd/cfcollection/openbd/b8PVKZYGtPY/QS_3gTLBDC8J
>>
>> What the heck is going on?!?
>>
>> Magnus
>>
>> --
>> --
>> online documentation: http://openbd.org/manual/
>> http://groups.google.com/group/openbd?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Open BlueDragon" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.