You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by di...@apache.org on 2011/05/25 20:11:14 UTC
[Lucene.Net] svn commit: r1127608 - in
/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch:
./ Properties/
Author: digy
Date: Wed May 25 18:11:13 2011
New Revision: 1127608
URL: http://svn.apache.org/viewvc?rev=1127608&view=rev
Log:
[LUCENENET-415] SimpleFacetedSearch
Added:
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Extensions.cs
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/FieldValuesBitSets.cs
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/GroupName.cs
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Hits.cs
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/HitsPerGroup.cs
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Properties/
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.cs
incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.csproj
Added: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Extensions.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Extensions.cs?rev=1127608&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Extensions.cs (added)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Extensions.cs Wed May 25 18:11:13 2011
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Lucene.Net.Search
+{
+ public static class Extensions
+ {
+ //CartesianProduct - Lambda
+ public static IEnumerable<IEnumerable<T>> CartesianProduct<T>(this IEnumerable<IEnumerable<T>> sequences)
+ {
+ IEnumerable<IEnumerable<T>> emptyProduct = new IEnumerable<T>[] { Enumerable.Empty<T>() };
+ return sequences.Aggregate(
+ emptyProduct,
+ (accumulator, sequence) =>
+ {
+ return accumulator.SelectMany(
+ (accseq => sequence),
+ (accseq, item) => accseq.Concat(new T[] { item })
+ );
+ }
+ );
+ }
+
+ //CartesianProduct - LINQ
+ static IEnumerable<IEnumerable<T>> CartesianProduct2<T>(this IEnumerable<IEnumerable<T>> sequences)
+ {
+ IEnumerable<IEnumerable<T>> emptyProduct = new[] { Enumerable.Empty<T>() };
+ return sequences.Aggregate(
+ emptyProduct,
+ (accumulator, sequence) =>
+ from accseq in accumulator
+ from item in sequence
+ select accseq.Concat(new[] { item }));
+ }
+ }
+}
Added: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/FieldValuesBitSets.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/FieldValuesBitSets.cs?rev=1127608&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/FieldValuesBitSets.cs (added)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/FieldValuesBitSets.cs Wed May 25 18:11:13 2011
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Lucene.Net.Analysis;
+using Lucene.Net.Documents;
+using Lucene.Net.Analysis.Standard;
+using Lucene.Net.Index;
+using Lucene.Net.Search;
+using Lucene.Net.QueryParsers;
+using Lucene.Net.Store;
+using Lucene.Net.Util;
+
+namespace Lucene.Net.Search
+{
+
+ class FieldValuesBitSets
+ {
+ public string Field = "";
+ public Dictionary<string, OpenBitSetDISI> FieldValueBitSetPair = new Dictionary<string, OpenBitSetDISI>();
+
+ IndexReader _Reader;
+
+ public FieldValuesBitSets(IndexReader reader, string field)
+ {
+ this.Field = field;
+ this._Reader = reader;
+
+ foreach (string val in GetFieldValues(field))
+ {
+ FieldValueBitSetPair.Add(val, GetBitSet(field, val));
+ }
+ }
+
+ List<string> GetFieldValues(string groupByField)
+ {
+ List<string> list = new List<string>();
+ TermEnum te = _Reader.Terms(new Term(groupByField, ""));
+ if (te.Term().Field() != groupByField) return list;
+ list.Add(te.Term().Text());
+
+ while (te.Next())
+ {
+ if (te.Term().Field() != groupByField) break;
+ list.Add(te.Term().Text());
+ }
+ return list;
+ }
+
+ OpenBitSetDISI GetBitSet(string groupByField, string group)
+ {
+ TermQuery query = new TermQuery(new Term(groupByField, group));
+ Filter filter = new CachingWrapperFilter(new QueryWrapperFilter(query));
+ return new OpenBitSetDISI(filter.GetDocIdSet(_Reader).Iterator(), _Reader.MaxDoc());
+ }
+ }
+}
Added: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/GroupName.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/GroupName.cs?rev=1127608&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/GroupName.cs (added)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/GroupName.cs Wed May 25 18:11:13 2011
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Lucene.Net.Search
+{
+ public partial class SimpleFacetedSearch
+ {
+ public class GroupName
+ {
+ string[] _Names;
+ internal GroupName(string[] names)
+ {
+ this._Names = names;
+ }
+
+ public string this[int i]
+ {
+ get { return _Names[i]; }
+ }
+
+ public int Length
+ {
+ get { return _Names.Length; }
+ }
+
+ public override string ToString()
+ {
+ return String.Join("/", _Names);
+ }
+ }
+ }
+}
Added: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Hits.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Hits.cs?rev=1127608&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Hits.cs (added)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Hits.cs Wed May 25 18:11:13 2011
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Lucene.Net.Search
+{
+ public partial class SimpleFacetedSearch
+ {
+ public class Hits
+ {
+ long _TotalHitCount = -1;
+ HitsPerGroup[] _HitsPerGroup;
+
+ public long TotalHitCount
+ {
+ get
+ {
+ if (_TotalHitCount == -1)
+ {
+ _TotalHitCount = 0;
+ foreach (var h in _HitsPerGroup)
+ {
+ _TotalHitCount += h.HitCount;
+ }
+ }
+ return _TotalHitCount;
+ }
+ }
+
+ public HitsPerGroup[] HitsPerGroup
+ {
+ get { return _HitsPerGroup; }
+ internal set { _HitsPerGroup = value; }
+ }
+ }
+ }
+}
Added: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/HitsPerGroup.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/HitsPerGroup.cs?rev=1127608&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/HitsPerGroup.cs (added)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/HitsPerGroup.cs Wed May 25 18:11:13 2011
@@ -0,0 +1,116 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Lucene.Net.Analysis;
+using Lucene.Net.Documents;
+using Lucene.Net.Analysis.Standard;
+using Lucene.Net.Index;
+using Lucene.Net.Search;
+using Lucene.Net.QueryParsers;
+using Lucene.Net.Store;
+using Lucene.Net.Util;
+
+namespace Lucene.Net.Search
+{
+ public partial class SimpleFacetedSearch
+ {
+ public class HitsPerGroup : IEnumerable<Document>, IEnumerator<Document>
+ {
+ IndexReader _Reader;
+ int _MaxDocPerGroup;
+ int _ItemsReturned = 0;
+ DocIdSetIterator _ResultIterator;
+ OpenBitSetDISI _ResultBitSet;
+ int _CurrentDocId;
+
+ GroupName _GroupName;
+ long _HitCount = -1;
+
+ internal HitsPerGroup(GroupName group, IndexReader reader, DocIdSet queryDocidSet, OpenBitSetDISI groupBitSet, int maxDocPerGroup)
+ {
+ this._GroupName = group;
+ this._Reader = reader;
+ this._MaxDocPerGroup = maxDocPerGroup;
+
+ _ResultBitSet = new OpenBitSetDISI(queryDocidSet.Iterator(), _Reader.MaxDoc());
+ _ResultBitSet.And(groupBitSet);
+
+ _ResultIterator = _ResultBitSet.Iterator();
+ }
+
+ public GroupName Name
+ {
+ get { return _GroupName; }
+ }
+
+ public long HitCount
+ {
+ get
+ {
+ if (_HitCount == -1) _HitCount = _ResultBitSet.Cardinality();
+ return _HitCount;
+ }
+ }
+
+ public Document Current
+ {
+ get { return _Reader.Document(_CurrentDocId); }
+ }
+
+ object System.Collections.IEnumerator.Current
+ {
+ get { return _Reader.Document(_CurrentDocId); }
+ }
+
+ public bool MoveNext()
+ {
+ _CurrentDocId = _ResultIterator.NextDoc();
+ return _CurrentDocId != DocIdSetIterator.NO_MORE_DOCS && ++_ItemsReturned <= _MaxDocPerGroup;
+ }
+
+ public IEnumerator<Document> GetEnumerator()
+ {
+ return this;
+ }
+
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
+ {
+ return this;
+ }
+
+ public void Reset()
+ {
+ throw new NotImplementedException();
+ }
+
+ public void Dispose()
+ {
+
+ }
+
+ public HitsPerGroup Documents
+ {
+ get { return this; }
+ }
+ }
+ }
+}
Added: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs?rev=1127608&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs (added)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/Properties/AssemblyInfo.cs Wed May 25 18:11:13 2011
@@ -0,0 +1,40 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Lucene.Net.Search.SimpleFacetedSearch")]
+[assembly: AssemblyDescription("SimpleFacetedSearch for Lucene.Net")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("The Apache Software Foundation")]
+[assembly: AssemblyProduct("Lucene.Net.SimpleFacetedSearch")]
+[assembly: AssemblyCopyright("Copyright 2006 - 2011 The Apache Software Foundation")]
+[assembly: AssemblyTrademark("Copyright 2006 - 2011 The Apache Software Foundation")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("dfa80a55-3bcc-4d3c-872c-dab7ccc1bfb5")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("2.9.4")]
+[assembly: AssemblyFileVersion("2.9.4")]
+
+
+
+
+
Added: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.cs?rev=1127608&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.cs (added)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.cs Wed May 25 18:11:13 2011
@@ -0,0 +1,141 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Lucene.Net.Analysis;
+using Lucene.Net.Documents;
+using Lucene.Net.Analysis.Standard;
+using Lucene.Net.Index;
+using Lucene.Net.Search;
+using Lucene.Net.QueryParsers;
+using Lucene.Net.Store;
+using Lucene.Net.Util;
+
+/*
+ Suppose, we want a faceted search on fields f1 f2 f3,
+ and their values in index are
+
+ f1 f2 f3
+ -- -- --
+doc1 A I 1
+doc2 A I 2
+doc3 A I 3
+doc4 A J 1
+doc5 A J 2
+doc6 A J 3
+doc7 B I 1
+
+ Algorithm:
+ 1- Find all possible values for f1 which are (A,B) , for f2 which are (I,J) and for f3 which are (1,2,3)
+ 2- Find Cartesian Product of (A,B)X(I,J)X(1,2,3). (12 possible groups)
+ 3- Eliminate the ones that surely result in 0 hits. (for ex, B J 2. since they have no doc. in common)
+*/
+
+/*
+ TODO: Support for pre-built queries defining groups can be added
+*/
+
+namespace Lucene.Net.Search
+{
+ public partial class SimpleFacetedSearch : IDisposable
+ {
+ public const int DefaultMaxDocPerGroup = 25;
+
+ IndexReader _Reader;
+ List<KeyValuePair<List<string>, OpenBitSetDISI>> _Groups = new List<KeyValuePair<List<string>, OpenBitSetDISI>>();
+
+ public SimpleFacetedSearch(IndexReader reader, string groupByField) : this(reader, new string[] { groupByField })
+ {
+ }
+
+ public SimpleFacetedSearch(IndexReader reader, string[] groupByFields)
+ {
+ this._Reader = reader;
+
+ List<FieldValuesBitSets> fieldValuesBitSets = new List<FieldValuesBitSets>();
+
+ //STEP 1
+ //f1 = A, B
+ //f2 = I, J
+ //f3 = 1, 2, 3
+ List<List<string>> inputToCP = new List<List<string>>();
+ foreach (string field in groupByFields)
+ {
+ FieldValuesBitSets f = new FieldValuesBitSets(reader, field);
+ fieldValuesBitSets.Add(f);
+ inputToCP.Add(f.FieldValueBitSetPair.Keys.ToList());
+ }
+
+ //STEP 2
+ // comb1: A I 1
+ // comb2: A I 2 etc.
+ var cp = inputToCP.CartesianProduct();
+
+ //SETP 3
+ //create a single BitSet for each combination
+ //BitSet1: A AND I AND 1
+ //BitSet2: A AND I AND 2 etc.
+ //and remove impossible comb's (for ex, B J 3) from list.
+ foreach (var combinations in cp)
+ {
+ OpenBitSetDISI bitSet = new OpenBitSetDISI(_Reader.MaxDoc());
+ bitSet.Set(0, bitSet.Size());
+
+ List<string> comb = combinations.ToList();
+
+ for (int j = 0; j < comb.Count; j++)
+ {
+ bitSet.And(fieldValuesBitSets[j].FieldValueBitSetPair[comb[j]]);
+ }
+
+ //STEP 3
+ if (bitSet.Cardinality() > 0)
+ {
+ _Groups.Add(new KeyValuePair<List<string>, OpenBitSetDISI>(comb, bitSet));
+ }
+ }
+
+ //Now _Groups has 7 rows (as <List<string>, BitSet> pairs)
+ }
+
+ public Hits Search(Query query, int maxDocPerGroup = DefaultMaxDocPerGroup)
+ {
+ List<HitsPerGroup> hitsPerGroup = new List<HitsPerGroup>();
+
+ DocIdSet queryDocidSet = new CachingWrapperFilter(new QueryWrapperFilter(query)).GetDocIdSet(_Reader);
+
+ for (int i = 0; i < _Groups.Count; i++)
+ {
+ HitsPerGroup h = new HitsPerGroup(new GroupName(_Groups[i].Key.ToArray()), _Reader, queryDocidSet, _Groups[i].Value, maxDocPerGroup);
+ hitsPerGroup.Add(h);
+ }
+
+ Hits hits = new Hits();
+ hits.HitsPerGroup = hitsPerGroup.ToArray();
+
+ return hits;
+ }
+
+ public void Dispose()
+ {
+ }
+ }
+}
Added: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.csproj?rev=1127608&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.csproj (added)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/contrib/SimpleFacetedSearch/SimpleFacetedSearch.csproj Wed May 25 18:11:13 2011
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{66772190-FB3F-48F5-8E05-0B302BACEA73}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Lucene.Net.Search.SimpleFacetedSearch</RootNamespace>
+ <AssemblyName>Lucene.Net.Search.SimpleFacetedSearch</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>..\..\..\bin\contrib\SimpleFacetedSearch\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Extensions.cs" />
+ <Compile Include="FieldValuesBitSets.cs" />
+ <Compile Include="GroupName.cs" />
+ <Compile Include="Hits.cs" />
+ <Compile Include="HitsPerGroup.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="SimpleFacetedSearch.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\core\Lucene.Net.csproj">
+ <Project>{5D4AD9BE-1FFB-41AB-9943-25737971BF57}</Project>
+ <Name>Lucene.Net</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file