Fixes up index set extensions and now have the Sorting test working. PDF indexer tests working.
This commit is contained in:
@@ -288,6 +288,7 @@
|
||||
<Compile Include="TestHelpers\SettingsForTests.cs" />
|
||||
<Compile Include="UmbracoExamine\ContentServiceTest.cs" />
|
||||
<Compile Include="UmbracoExamine\EventsTest.cs" />
|
||||
<Compile Include="UmbracoExamine\ExamineBaseTest.cs" />
|
||||
<Compile Include="UmbracoExamine\IndexInitializer.cs" />
|
||||
<Compile Include="UmbracoExamine\IndexTest.cs" />
|
||||
<Compile Include="UmbracoExamine\PdfIndexerTests.cs" />
|
||||
@@ -334,10 +335,14 @@
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="UmbracoExamine\TestFiles\Converting_file_to_PDF.pdf" />
|
||||
<None Include="UmbracoExamine\TestFiles\PDFStandards.PDF" />
|
||||
<None Include="UmbracoExamine\TestFiles\SurviorFlipCup.pdf" />
|
||||
<None Include="UmbracoExamine\TestFiles\umbraco-sort.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="UmbracoExamine\TestFiles\umbraco.config" />
|
||||
<None Include="UmbracoExamine\TestFiles\windows-vista.pdf" />
|
||||
<None Include="unit-test-log4net.config">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
||||
20
src/Umbraco.Tests/UmbracoExamine/ExamineBaseTest.cs
Normal file
20
src/Umbraco.Tests/UmbracoExamine/ExamineBaseTest.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Umbraco.Tests.PartialTrust;
|
||||
using UmbracoExamine;
|
||||
|
||||
namespace Umbraco.Tests.UmbracoExamine
|
||||
{
|
||||
public abstract class ExamineBaseTest<T> : AbstractPartialTrustFixture<T> where T : class, IPartialTrustFixture, new()
|
||||
{
|
||||
public override void TestSetup()
|
||||
{
|
||||
UmbracoExamineSearcher.DisableInitializationCheck = true;
|
||||
BaseUmbracoIndexer.DisableInitializationCheck = true;
|
||||
}
|
||||
|
||||
public override void TestTearDown()
|
||||
{
|
||||
UmbracoExamineSearcher.DisableInitializationCheck = null;
|
||||
BaseUmbracoIndexer.DisableInitializationCheck = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,7 @@ namespace Umbraco.Tests.UmbracoExamine
|
||||
}
|
||||
|
||||
var indexSet = new IndexSet();
|
||||
var indexCriteria = indexSet.ToIndexCriteria(dataService);
|
||||
var indexCriteria = indexSet.ToIndexCriteria(dataService, UmbracoContentIndexer.IndexFieldPolicies);
|
||||
|
||||
var i = new UmbracoContentIndexer(indexCriteria,
|
||||
luceneDir, //custom lucene directory
|
||||
@@ -55,38 +55,7 @@ namespace Umbraco.Tests.UmbracoExamine
|
||||
}
|
||||
return new UmbracoExamineSearcher(luceneDir, analyzer);
|
||||
}
|
||||
//public static SimpleDataIndexer GetSimpleIndexer(Lucene.Net.Store.Directory luceneDir)
|
||||
//{
|
||||
// var i = new SimpleDataIndexer(new IndexCriteria(
|
||||
// new IIndexField[] { },
|
||||
// new[]
|
||||
// {
|
||||
// new TestIndexField { Name = "Author" },
|
||||
// new TestIndexField { Name = "DateCreated", EnableSorting = true, Type = "DateTime" },
|
||||
// new TestIndexField { Name = "Title" },
|
||||
// new TestIndexField { Name = "Photographer" },
|
||||
// new TestIndexField { Name = "YearCreated", Type = "Date.Year" },
|
||||
// new TestIndexField { Name = "MonthCreated", Type = "Date.Month" },
|
||||
// new TestIndexField { Name = "DayCreated", Type = "Date.Day" },
|
||||
// new TestIndexField { Name = "HourCreated", Type = "Date.Hour" },
|
||||
// new TestIndexField { Name = "MinuteCreated", Type = "Date.Minute" },
|
||||
// new TestIndexField { Name = "SomeNumber", Type = "Number" },
|
||||
// new TestIndexField { Name = "SomeFloat", Type = "Float" },
|
||||
// new TestIndexField { Name = "SomeDouble", Type = "Double" },
|
||||
// new TestIndexField { Name = "SomeLong", Type = "Long" }
|
||||
// },
|
||||
// new string[] { },
|
||||
// new string[] { },
|
||||
// -1),
|
||||
// luceneDir,
|
||||
// new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29),
|
||||
// new TestSimpleDataProvider(),
|
||||
// new[] { "Documents", "Pictures" },
|
||||
// false);
|
||||
// i.IndexingError += IndexingError;
|
||||
|
||||
// return i;
|
||||
//}
|
||||
|
||||
public static LuceneSearcher GetLuceneSearcher(Lucene.Net.Store.Directory luceneDir)
|
||||
{
|
||||
return new LuceneSearcher(luceneDir, new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29));
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Umbraco.Tests.UmbracoExamine
|
||||
/// Tests the standard indexing capabilities
|
||||
/// </summary>
|
||||
[TestFixture, RequiresSTA]
|
||||
public class IndexTest : AbstractPartialTrustFixture<IndexTest>
|
||||
public class IndexTest : ExamineBaseTest<IndexTest>
|
||||
{
|
||||
|
||||
///// <summary>
|
||||
@@ -207,6 +207,7 @@ namespace Umbraco.Tests.UmbracoExamine
|
||||
|
||||
public override void TestTearDown()
|
||||
{
|
||||
base.TestTearDown();
|
||||
_luceneDir.Dispose();
|
||||
UmbracoExamineSearcher.DisableInitializationCheck = null;
|
||||
BaseUmbracoIndexer.DisableInitializationCheck = null;
|
||||
@@ -214,8 +215,7 @@ namespace Umbraco.Tests.UmbracoExamine
|
||||
|
||||
public override void TestSetup()
|
||||
{
|
||||
UmbracoExamineSearcher.DisableInitializationCheck = true;
|
||||
BaseUmbracoIndexer.DisableInitializationCheck = true;
|
||||
base.TestSetup();
|
||||
_luceneDir = new RAMDirectory();
|
||||
_indexer = IndexInitializer.GetUmbracoIndexer(_luceneDir);
|
||||
_indexer.RebuildIndex();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
using Examine;
|
||||
@@ -11,26 +12,46 @@ using UmbracoExamine.PDF;
|
||||
namespace Umbraco.Tests.UmbracoExamine
|
||||
{
|
||||
[TestFixture]
|
||||
public class PdfIndexerTests
|
||||
public class PdfIndexerTests // itextsharp is not med trust safe so can't use hte base class: ExamineBaseTest<PdfIndexerTests>
|
||||
{
|
||||
|
||||
private readonly TestMediaService _mediaService = new TestMediaService();
|
||||
private static PDFIndexer _indexer;
|
||||
private static UmbracoExamineSearcher _searcher;
|
||||
private Lucene.Net.Store.Directory _luceneDir;
|
||||
|
||||
[SetUp]
|
||||
public void Initialize()
|
||||
|
||||
[SetUp]
|
||||
public void TestSetup()
|
||||
{
|
||||
_luceneDir = new RAMDirectory();
|
||||
UmbracoExamineSearcher.DisableInitializationCheck = true;
|
||||
BaseUmbracoIndexer.DisableInitializationCheck = true;
|
||||
//we'll copy over the pdf files first
|
||||
var svc = new TestDataService();
|
||||
var path = svc.MapPath("/App_Data/Converting_file_to_PDF.pdf");
|
||||
var f = new FileInfo(path);
|
||||
var dir = f.Directory;
|
||||
var pdfs = new[] { TestFiles.Converting_file_to_PDF, TestFiles.PDFStandards, TestFiles.SurviorFlipCup, TestFiles.windows_vista };
|
||||
var names = new[] { "Converting_file_to_PDF.pdf", "PDFStandards.pdf", "SurviorFlipCup.pdf", "windows_vista.pdf" };
|
||||
for (int index = 0; index < pdfs.Length; index++)
|
||||
{
|
||||
var p = pdfs[index];
|
||||
using (var writer = File.Create(Path.Combine(dir.FullName, names[index])))
|
||||
{
|
||||
writer.Write(p, 0, p.Length);
|
||||
}
|
||||
}
|
||||
|
||||
_luceneDir = new RAMDirectory();
|
||||
_indexer = IndexInitializer.GetPdfIndexer(_luceneDir);
|
||||
_indexer.RebuildIndex();
|
||||
_searcher = IndexInitializer.GetUmbracoSearcher(_luceneDir);
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
public void TestTearDown()
|
||||
{
|
||||
UmbracoExamineSearcher.DisableInitializationCheck = null;
|
||||
BaseUmbracoIndexer.DisableInitializationCheck = null;
|
||||
_luceneDir.Dispose();
|
||||
}
|
||||
|
||||
@@ -67,25 +88,25 @@ namespace Umbraco.Tests.UmbracoExamine
|
||||
[Test]
|
||||
public void PDFIndexer_Reindex()
|
||||
{
|
||||
//get searcher and reader to get stats
|
||||
var r = ((IndexSearcher)_searcher.GetSearcher()).GetIndexReader();
|
||||
|
||||
Trace.Write("Num docs = " + r.NumDocs().ToString());
|
||||
|
||||
Assert.AreEqual(7, r.NumDocs());
|
||||
|
||||
|
||||
//search the pdf content to ensure it's there
|
||||
Assert.IsTrue(_searcher.Search(_searcher.CreateSearchCriteria().Id(1113).Compile()).Single()
|
||||
.Fields[PDFIndexer.TextContentFieldName].Contains("EncapsulateField"));
|
||||
Assert.IsTrue(_searcher.Search(_searcher.CreateSearchCriteria().Id(1114).Compile()).Single()
|
||||
.Fields[PDFIndexer.TextContentFieldName].Contains("metaphysical realism"));
|
||||
var contents = _searcher.Search(_searcher.CreateSearchCriteria().Id(1113).Compile()).Single()
|
||||
.Fields[PDFIndexer.TextContentFieldName];
|
||||
Assert.IsTrue(contents.Contains("Fonts are automatically embedded in Word 2008"));
|
||||
|
||||
//the contour PDF cannot be read properly, this is to due with the PDF encoding!
|
||||
//Assert.IsTrue(s.Search(s.CreateSearchCriteria().Id(1115).Compile()).Single()
|
||||
// .Fields[PDFIndexer.TextContentFieldName].Contains("Returns All records from the form with the id"));
|
||||
contents = _searcher.Search(_searcher.CreateSearchCriteria().Id(1114).Compile()).Single()
|
||||
.Fields[PDFIndexer.TextContentFieldName];
|
||||
Assert.IsTrue(contents.Contains("Drink the beer and then flip the cup"));
|
||||
|
||||
Assert.IsTrue(_searcher.Search(_searcher.CreateSearchCriteria().Id(1116).Compile()).Single()
|
||||
.Fields[PDFIndexer.TextContentFieldName].Contains("What long-term preservation"));
|
||||
//NOTE: This is one of those PDFs that cannot be read and not sure how to force it too.
|
||||
// Will leave this here as one day we might figure it out.
|
||||
//contents = _searcher.Search(_searcher.CreateSearchCriteria().Id(1115).Compile()).Single()
|
||||
// .Fields[PDFIndexer.TextContentFieldName];
|
||||
//Assert.IsTrue(contents.Contains("Activation associates the use of the software"));
|
||||
|
||||
contents = _searcher.Search(_searcher.CreateSearchCriteria().Id(1116).Compile()).Single()
|
||||
.Fields[PDFIndexer.TextContentFieldName];
|
||||
Assert.IsTrue(contents.Contains("This lack of standardization could be chaotic"));
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,30 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Examine;
|
||||
using Examine.LuceneEngine.Providers;
|
||||
using Lucene.Net.Store;
|
||||
using NUnit.Framework;
|
||||
using Umbraco.Tests.PartialTrust;
|
||||
using UmbracoExamine;
|
||||
using Examine.LuceneEngine.SearchCriteria;
|
||||
|
||||
namespace Umbraco.Tests.UmbracoExamine
|
||||
{
|
||||
[TestFixture]
|
||||
public class SearchTests : AbstractPartialTrustFixture<SearchTests>
|
||||
public class SearchTests : ExamineBaseTest<SearchTests>
|
||||
{
|
||||
|
||||
[Test]
|
||||
public void Test_Sort_Order_Sorting()
|
||||
{
|
||||
//var newIndexFolder = new DirectoryInfo(Path.Combine("App_Data\\SearchTests", Guid.NewGuid().ToString()));
|
||||
//System.IO.Directory.CreateDirectory(newIndexFolder.FullName);
|
||||
|
||||
using (var luceneDir = new RAMDirectory())
|
||||
{
|
||||
//var indexer = IndexInitializer.GetUmbracoIndexer(luceneDir, null, new TestDataService()
|
||||
// {
|
||||
// ContentService = new TestContentService(TestFiles.umbraco_sort)
|
||||
// });
|
||||
var indexer = IndexInitializer.GetUmbracoIndexer(luceneDir);
|
||||
//using (var luceneDir = new SimpleFSDirectory(newIndexFolder))
|
||||
{
|
||||
var indexer = IndexInitializer.GetUmbracoIndexer(luceneDir, null,
|
||||
new TestDataService()
|
||||
{
|
||||
ContentService = new TestContentService(TestFiles.umbraco_sort)
|
||||
});
|
||||
indexer.RebuildIndex();
|
||||
var searcher = IndexInitializer.GetUmbracoSearcher(luceneDir);
|
||||
|
||||
@@ -32,15 +36,39 @@ namespace Umbraco.Tests.UmbracoExamine
|
||||
var luceneSearcher = s.GetSearcher();
|
||||
var i = (LuceneIndexer) indexer;
|
||||
|
||||
var criteria = searcher.CreateSearchCriteria();
|
||||
//var filter = criteria.ParentId(1148).And().OrderBy(new SortableField("sortOrder", SortType.Int));
|
||||
var filter = criteria.ParentId(1148);
|
||||
var result = searcher.Search(filter.Compile());
|
||||
Assert.AreEqual(12, result.TotalItemCount);
|
||||
var numberSortedCriteria = searcher.CreateSearchCriteria()
|
||||
.ParentId(1148).And()
|
||||
.OrderBy(new SortableField("sortOrder", SortType.Int));
|
||||
var numberSortedResult = searcher.Search(numberSortedCriteria.Compile());
|
||||
|
||||
var stringSortedCriteria = searcher.CreateSearchCriteria()
|
||||
.ParentId(1148).And()
|
||||
.OrderBy("sortOrder"); //will default to string
|
||||
var stringSortedResult = searcher.Search(stringSortedCriteria.Compile());
|
||||
|
||||
Assert.AreEqual(12, numberSortedResult.TotalItemCount);
|
||||
Assert.AreEqual(12, stringSortedResult.TotalItemCount);
|
||||
|
||||
Assert.IsTrue(IsSortedByNumber(numberSortedResult));
|
||||
Assert.IsFalse(IsSortedByNumber(stringSortedResult));
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsSortedByNumber(IEnumerable<SearchResult> results)
|
||||
{
|
||||
var currentSort = 0;
|
||||
foreach (var searchResult in results)
|
||||
{
|
||||
var sort = int.Parse(searchResult.Fields["sortOrder"]);
|
||||
if (currentSort >= sort)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
currentSort = sort;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//[Test]
|
||||
//public void Test_Index_Type_With_German_Analyzer()
|
||||
//{
|
||||
@@ -59,14 +87,5 @@ namespace Umbraco.Tests.UmbracoExamine
|
||||
//private static UmbracoContentIndexer _indexer;
|
||||
//private Lucene.Net.Store.Directory _luceneDir;
|
||||
|
||||
public override void TestTearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void TestSetup()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,12 +60,22 @@ namespace Umbraco.Tests.UmbracoExamine {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
internal static byte[] Converting_file_to_PDF {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Converting_file_to_PDF", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8"?>
|
||||
///<media>
|
||||
/// <node id="1111" version="902e13f7-5793-482a-9e06-cd94eebd1de0" parentID="-1" level="1" writerID="0" nodeType="1031" template="0" sortOrder="2" createDate="2010-05-19T15:26:08" updateDate="2010-05-19T15:26:09" nodeName="Product Images" urlName="productimages" writerName="Administrator" nodeTypeAlias="Folder" path="-1,1111">
|
||||
/// <data alias="contents"></data>
|
||||
/// <node id="2222" version="902e13f7-5793-482a-9e06-cd94eebd1de0" parentID="1111" level="1" writerID="0 [rest of string was truncated]";.
|
||||
/// <node id="2222" version="902e13f7-5793-482a-9e06-cd94eebd1de0" parentID="1111" level="2" writerID="0 [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string media {
|
||||
get {
|
||||
@@ -73,6 +83,26 @@ namespace Umbraco.Tests.UmbracoExamine {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
internal static byte[] PDFStandards {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("PDFStandards", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
internal static byte[] SurviorFlipCup {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("SurviorFlipCup", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8"?>
|
||||
///<!DOCTYPE root[
|
||||
@@ -118,5 +148,15 @@ namespace Umbraco.Tests.UmbracoExamine {
|
||||
internal static string umbraco_sort {
|
||||
get {
|
||||
return ResourceManager.GetString("umbraco_sort", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
internal static byte[] windows_vista {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("windows_vista", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,13 +118,25 @@
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="Converting_file_to_PDF" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>testfiles\converting_file_to_pdf.pdf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="media" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>testfiles\media.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="PDFStandards" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>testfiles\pdfstandards.pdf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="umbraco" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>testfiles\umbraco.config;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="umbraco_sort" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>testfiles\umbraco-sort.config;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="windows_vista" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>testfiles\windows-vista.pdf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="SurviorFlipCup" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>testfiles\surviorflipcup.pdf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
</root>
|
||||
Binary file not shown.
BIN
src/Umbraco.Tests/UmbracoExamine/TestFiles/PDFStandards.PDF
Normal file
BIN
src/Umbraco.Tests/UmbracoExamine/TestFiles/PDFStandards.PDF
Normal file
Binary file not shown.
BIN
src/Umbraco.Tests/UmbracoExamine/TestFiles/SurviorFlipCup.pdf
Normal file
BIN
src/Umbraco.Tests/UmbracoExamine/TestFiles/SurviorFlipCup.pdf
Normal file
Binary file not shown.
@@ -20,21 +20,21 @@
|
||||
</node>
|
||||
</node>
|
||||
<node id="1113" version="5b3e46ab-3e37-4cfa-ab70-014234b5bd39" parentID="1111" level="2" writerID="0" nodeType="1032" template="0" sortOrder="1" createDate="2010-05-19T17:32:46" updateDate="2010-05-19T17:32:46" nodeName="Acne Stress Scrub" urlName="acnestressscrub" writerName="Administrator" nodeTypeAlias="File" path="-1,1111,1113">
|
||||
<data alias="umbracoFile"><![CDATA[/App_Data/VS2010CSharp.pdf]]></data>
|
||||
<data alias="umbracoFile"><![CDATA[/App_Data/Converting_file_to_PDF.pdf]]></data>
|
||||
<data alias="umbracoWidth">115</data>
|
||||
<data alias="umbracoHeight">268</data>
|
||||
<data alias="umbracoBytes">10726</data>
|
||||
<data alias="umbracoExtension">jpg</data>
|
||||
</node>
|
||||
<node id="1114" version="5b3e46ab-3e37-4cfa-ab70-014234b5bd39" parentID="1111" level="2" writerID="0" nodeType="1032" template="0" sortOrder="1" createDate="2010-05-19T17:32:46" updateDate="2010-05-19T17:32:46" nodeName="String thoery" urlName="stringtheory" writerName="Administrator" nodeTypeAlias="File" path="-1,1111,1114">
|
||||
<data alias="umbracoFile"><![CDATA[/App_Data/StringTheory.pdf]]></data>
|
||||
<data alias="umbracoFile"><![CDATA[/App_Data/SurviorFlipCup.pdf]]></data>
|
||||
<data alias="umbracoWidth">115</data>
|
||||
<data alias="umbracoHeight">268</data>
|
||||
<data alias="umbracoBytes">10726</data>
|
||||
<data alias="umbracoExtension">jpg</data>
|
||||
</node>
|
||||
<node id="1115" version="5b3e46ab-3e37-4cfa-ab70-014234b5bd39" parentID="1111" level="2" writerID="0" nodeType="1032" template="0" sortOrder="1" createDate="2010-05-19T17:32:46" updateDate="2010-05-19T17:32:46" nodeName="Umbraco Contour" urlName="umbracocontour" writerName="Administrator" nodeTypeAlias="File" path="-1,1111,1115">
|
||||
<data alias="umbracoFile"><![CDATA[/App_Data/UmbracoContour.pdf]]></data>
|
||||
<data alias="umbracoFile"><![CDATA[/App_Data/windows_vista.pdf]]></data>
|
||||
<data alias="umbracoWidth">115</data>
|
||||
<data alias="umbracoHeight">268</data>
|
||||
<data alias="umbracoBytes">10726</data>
|
||||
|
||||
@@ -41,6 +41,11 @@
|
||||
</umbracoRedirect>
|
||||
<umbracoNaviHide>0</umbracoNaviHide>
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1160" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="12" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 8" urlName="blah-8" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1160" isDoc="">
|
||||
<photoText>Credit: Douglas Robar</photoText>
|
||||
<photo>/media/879/christian-palm.jpg</photo>
|
||||
<photoThumbnail>/media/889/christian-palm_thumb.jpg</photoThumbnail>
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1150" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="2" createDate="2009-02-27T09:54:07" updateDate="2010-04-22T02:18:31" nodeName="Codegarden 08 T-Shirt" urlName="codegarden-08-t-shirt" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1150" isDoc="">
|
||||
<photoText>Credit: Warren Buckley</photoText>
|
||||
<photo>/media/394/codegarden08-t-shirt.jpg</photo>
|
||||
@@ -83,6 +88,11 @@
|
||||
</umbracoRedirect>
|
||||
<umbracoNaviHide>0</umbracoNaviHide>
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1157" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="9" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 5" urlName="blah-5" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1157" isDoc="">
|
||||
<photoText>Credit: Douglas Robar</photoText>
|
||||
<photo>/media/879/christian-palm.jpg</photo>
|
||||
<photoThumbnail>/media/889/christian-palm_thumb.jpg</photoThumbnail>
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1153" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="5" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 1" urlName="blah-1" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1153" isDoc="">
|
||||
<photoText>Credit: Douglas Robar</photoText>
|
||||
<photo>/media/879/christian-palm.jpg</photo>
|
||||
@@ -102,27 +112,18 @@
|
||||
<photoText>Credit: Douglas Robar</photoText>
|
||||
<photo>/media/879/christian-palm.jpg</photo>
|
||||
<photoThumbnail>/media/889/christian-palm_thumb.jpg</photoThumbnail>
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1157" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="9" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 5" urlName="blah-5" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1157" isDoc="">
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1158" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="10" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 6" urlName="blah-6" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1158" isDoc="">
|
||||
<photoText>Credit: Douglas Robar</photoText>
|
||||
<photo>/media/879/christian-palm.jpg</photo>
|
||||
<photoThumbnail>/media/889/christian-palm_thumb.jpg</photoThumbnail>
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1158" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="9" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 6" urlName="blah-6" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1158" isDoc="">
|
||||
<photoText>Credit: Douglas Robar</photoText>
|
||||
<photo>/media/879/christian-palm.jpg</photo>
|
||||
<photoThumbnail>/media/889/christian-palm_thumb.jpg</photoThumbnail>
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1159" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="10" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 7" urlName="blah-7" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1159" isDoc="">
|
||||
<photoText>Credit: Douglas Robar</photoText>
|
||||
<photo>/media/879/christian-palm.jpg</photo>
|
||||
<photoThumbnail>/media/889/christian-palm_thumb.jpg</photoThumbnail>
|
||||
</CWS_Photo>
|
||||
<CWS_Photo id="1160" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="11" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 8" urlName="blah-8" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1160" isDoc="">
|
||||
<CWS_Photo id="1159" parentID="1148" level="4" writerID="0" creatorID="0" nodeType="1128" template="1114" sortOrder="11" createDate="2009-03-02T15:59:24" updateDate="2010-04-22T02:18:31" nodeName="Blah 7" urlName="blah-7" writerName="Administrator" creatorName="Administrator" path="-1,1139,1143,1148,1159" isDoc="">
|
||||
<photoText>Credit: Douglas Robar</photoText>
|
||||
<photo>/media/879/christian-palm.jpg</photo>
|
||||
<photoThumbnail>/media/889/christian-palm_thumb.jpg</photoThumbnail>
|
||||
</CWS_Photo>
|
||||
|
||||
</CWS_Gallery>
|
||||
</CWS_Galleries>
|
||||
</CWS_Home>
|
||||
|
||||
BIN
src/Umbraco.Tests/UmbracoExamine/TestFiles/windows-vista.pdf
Normal file
BIN
src/Umbraco.Tests/UmbracoExamine/TestFiles/windows-vista.pdf
Normal file
Binary file not shown.
@@ -55,7 +55,7 @@ namespace UmbracoExamine.Config
|
||||
field.Type = policy.Type;
|
||||
field.EnableSorting = policy.EnableSorting;
|
||||
}
|
||||
set.IndexAttributeFields.Add(new IndexField() { Name = s });
|
||||
set.IndexAttributeFields.Add(field);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user