This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.solrstart; | |
import org.attoparser.IMarkupHandler; | |
import org.attoparser.IMarkupParser; | |
import org.attoparser.MarkupParser; | |
import org.attoparser.ParseException; | |
import org.attoparser.config.ParseConfiguration; | |
import org.attoparser.discard.DiscardMarkupHandler; | |
import org.attoparser.select.NodeSelectorMarkupHandler; | |
import org.attoparser.simple.AbstractSimpleMarkupHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
From switch documentation: 'default' and 'case' are different things and cover different situations. | |
'default' covers any value being present and | |
'case' covers missing/empty value. | |
--> | |
<requestHandler name="/advanced" class="solr.SearchHandler"> | |
<lst name="defaults"> | |
<str name="rows">100</str> | |
</lst> | |
<lst name="invariants"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rsolr' | |
# 1. Connect to an empty example collection | |
solr = RSolr.connect :url => 'http://localhost:8983/solr' | |
puts('Before anything') | |
puts(solr.get 'select', :params => {:q => '*:*'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using Kentico site export, find all Document Aliases that have culture assigned and may not survive culture change | |
// Uses LINQPad's C# Statements format | |
//Root directory where the unzipped Kentico export file sit (with Data subdirectory) | |
string exportDirPath = @"<UNZIPPED_FULL_SITE_EXPORT>\Data"; | |
//XML files for documents and templates definitions | |
XDocument docSource = XDocument.Load(exportDirPath + @"\Documents\cms_document.xml.export"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using Kentico site export, find all templates that include DocumentDataSource with path expressions pointing to other documents (which will break when document tree moves) | |
// Uses LINQPad's C# Statements format | |
//Root directory where the unzipped Kentico export file sit (with Data subdirectory) | |
string exportDirPath = @"<UNZIPPED_FULL_SITE_EXPORT>\Data"; | |
//XML files for documents and templates definitions | |
XDocument templateSource = XDocument.Load(exportDirPath + @"\Objects\cms_pagetemplate.xml.export"); | |
XDocument siteTemplateSource = XDocument.Load(exportDirPath + @"\Site\cms_pagetemplate.xml.export"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using Kentico site export, find all templates and associated Documents/pages, skip templates that are not used | |
// Uses LINQPad's C# Statements format | |
//Root directory where the unzipped Kentico export file sit (with Data subdirectory) | |
string exportDirPath = @"<UNZIPPED_FULL_SITE_EXPORT>\Data"; | |
//XML files for documents and templates definitions | |
XDocument docSource = XDocument.Load(exportDirPath + @"\Documents\cms_document.xml.export"); | |
XDocument templateSource = XDocument.Load(exportDirPath + @"\Objects\cms_pagetemplate.xml.export"); |