Highlighted

Creating a SOLR collection and collection configuration programatically

New Here ,
Sep 18, 2018

Copy link to clipboard

Copied

We need some SOLR collections for searching.

To this point, we create the collection via the admin page, and then

  • we configure the /dataimport in solrconfig.xml in the collection folder
  • we configure schema.xml in the collection folder
  • we configure data-config.xml for the /dataimport in the collection folder

Is there a way for all these steps to be done programatically?

I assume that the <cfcollection> tag creates a collection but does only what the admin interface does.

Is there a way to do all this configuration via cfms/cfcs?

Views

245

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Creating a SOLR collection and collection configuration programatically

New Here ,
Sep 18, 2018

Copy link to clipboard

Copied

We need some SOLR collections for searching.

To this point, we create the collection via the admin page, and then

  • we configure the /dataimport in solrconfig.xml in the collection folder
  • we configure schema.xml in the collection folder
  • we configure data-config.xml for the /dataimport in the collection folder

Is there a way for all these steps to be done programatically?

I assume that the <cfcollection> tag creates a collection but does only what the admin interface does.

Is there a way to do all this configuration via cfms/cfcs?

Views

246

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 18, 2018 0
Adobe Employee ,
Sep 18, 2018

Copy link to clipboard

Copied

Hi,

Yes, you can create and index the collection programmatically. You can use the cfcollection to create the collection and cfindex to index your items.

https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-c/cfcollection.html

https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-i/cfindex.html


Thanks,Priyank Shrivastava

Thanks,
Priyank Shrivastava

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 18, 2018 0
New Here ,
Sep 18, 2018

Copy link to clipboard

Copied

I see that the full import action does not work, and I assume I have to manually edit the xml files in the collection directory to full-import to work.

The problem is that CF hangs when trying to index (update action) a lot of data (and does not hang with full import if enabled via the xmls) (i already run with 2GBytes Xmx)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 18, 2018 0