<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>LINQ to Lucene</title><link>http://linqtolucene.codeplex.com/project/feeds/rss</link><description>Providing a custom LINQ solution for the Lucene Information Retrieval System, commonly referred to as a search-engine.  </description><item><title>New Post: NuGet package of this library.</title><link>http://linqtolucene.codeplex.com/discussions/438958</link><description>&lt;div style="line-height: normal;"&gt;Hi guys,&lt;br /&gt;
&lt;br /&gt;
Are you going to upload this package on NuGet?&lt;br /&gt;
&lt;/div&gt;</description><author>RredCat</author><pubDate>Wed, 03 Apr 2013 14:35:53 GMT</pubDate><guid isPermaLink="false">New Post: NuGet package of this library. 20130403023553P</guid></item><item><title>New Post: Parse Exception. EF</title><link>http://linqtolucene.codeplex.com/discussions/436527</link><description>&lt;div style="line-height: normal;"&gt;Hello, I have an error with stacktrace:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;[ParseException: Encountered &amp;quot; &amp;quot;:&amp;quot; &amp;quot;: &amp;quot;&amp;quot; at line 1, column 14.
Was expecting one of:
    &amp;lt;AND&amp;gt; ...
    &amp;lt;OR&amp;gt; ...
    &amp;lt;NOT&amp;gt; ...
    &amp;quot;+&amp;quot; ...
    &amp;quot;-&amp;quot; ...
    &amp;quot;(&amp;quot; ...
    &amp;quot;)&amp;quot; ...
    &amp;quot;*&amp;quot; ...
    &amp;quot;^&amp;quot; ...
    &amp;lt;QUOTED&amp;gt; ...
    &amp;lt;TERM&amp;gt; ...
    &amp;lt;FUZZY_SLOP&amp;gt; ...
    &amp;lt;PREFIXTERM&amp;gt; ...
    &amp;lt;WILDTERM&amp;gt; ...
    &amp;quot;[&amp;quot; ...
    &amp;quot;{&amp;quot; ...
    &amp;lt;NUMBER&amp;gt; ...
    ]
   Lucene.Net.QueryParsers.QueryParser.Jj_consume_token(Int32 kind) +191
   Lucene.Net.QueryParsers.QueryParser.Clause(String field) +238
   Lucene.Net.QueryParsers.QueryParser.Query(String field) +64
   Lucene.Net.QueryParsers.QueryParser.Parse(String query) +89

[ParseException: Cannot parse '(Title:Content:Page)': Encountered &amp;quot; &amp;quot;:&amp;quot; &amp;quot;: &amp;quot;&amp;quot; at line 1, column 14.&lt;/code&gt;&lt;/pre&gt;

Here is my class:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data.Linq.Mapping;
using System.Linq;
using Lucene.Linq.Mapping;
using Lucene.Linq.Search;
using Pollmerica.Core;
using Pollmerica.Core.Checker;
using Pollmerica.Dal.Models.Comments;
using Pollmerica.Dal.Models.Features;
using Pollmerica.Dal.Models.Votes;

namespace Pollmerica.Dal.Models.Articles
{
[Document]
    [Table(Name = &amp;quot;dbo.ContentBases&amp;quot;)]
    public partial class Page : ContentBase
    {
        public Page()
            : base()
        {
        }
    }
    public class ContentBase : EntityBase
    {
        private string title;
        private string content;
        public ContentBase() : base()
        {
        }

        [Field(FieldIndex.Tokenized, FieldStore.Yes, IsDefault = true)]
        [Column(Storage = &amp;quot;title&amp;quot;)]
        public string Title
        {
            get { return this.title; }
            set
            {
                if ((this.title != value))
                {
                    this.title = value;
                }
            }
        }

        [Field(FieldIndex.Tokenized)]
        public string Content { get; set; } 
   }
public partial class EntityBase : IIndexable, INotifyPropertyChanging, INotifyPropertyChanged
    {
        private static readonly PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);

        partial void OnCreated();

        public EntityBase()
        {
            this.OnCreated();
        }

        /// &amp;lt;summary&amp;gt;
        /// Gets or sets the id.
        /// &amp;lt;/summary&amp;gt;
        public int Id { get; set; }
        
        public event PropertyChangedEventHandler PropertyChanged;

        public event PropertyChangingEventHandler PropertyChanging;

        protected virtual void SendPropertyChanging()
        {
            if ((this.PropertyChanging != null))
            {
                this.PropertyChanging(this, emptyChangingEventArgs);
            }
        }

        protected virtual void SendPropertyChanged(string propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }&lt;/code&gt;&lt;/pre&gt;

And usage:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;Directory directory = new RAMDirectory();

            var myIndexContext = new MyIndexContext(directory, new MyContext());
            myIndexContext.Write&amp;lt;Page&amp;gt;();
            IQueryable&amp;lt;Page&amp;gt; query0 = from c in myIndexContext.Pages
                                      select c;

            IQueryable&amp;lt;Page&amp;gt; query1 = from c in myIndexContext.Pages
                                      where c.Title == &amp;quot;Page&amp;quot;
                                      select c;

            var list0 = query0.ToPagedList(page ?? 0, pageSize);
            var list1 = query1.ToPagedList(page ?? 0, pageSize);&lt;/code&gt;&lt;/pre&gt;

There are 6 items in list0. And I got an error when try to fill list1.&lt;br /&gt;
When I remove attribute Field from Content property of ContentBase class, program works without errors.&lt;br /&gt;
Help me please.&lt;br /&gt;
&lt;/div&gt;</description><author>pe4aiko</author><pubDate>Wed, 13 Mar 2013 20:21:53 GMT</pubDate><guid isPermaLink="false">New Post: Parse Exception. EF 20130313082153P</guid></item><item><title>New Post: Azure Table support for lucene indexing.</title><link>http://linqtolucene.codeplex.com/discussions/434074</link><description>&lt;div style="line-height: normal;"&gt;Can some share the information or samples on how I can index azure table data into index files stored in azure table store using linqtolucene?&lt;br /&gt;
&lt;br /&gt;
Any help in this regard would be highly appreciated.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Roshan&lt;br /&gt;
&lt;/div&gt;</description><author>roshanjose</author><pubDate>Fri, 22 Feb 2013 08:43:20 GMT</pubDate><guid isPermaLink="false">New Post: Azure Table support for lucene indexing. 20130222084320A</guid></item><item><title>New Post: Entity Framework?</title><link>http://linqtolucene.codeplex.com/discussions/398554</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I havent really looked into the code or the inner working of your project. But for what it seems you are using Entity Framework. Is this correct? I though the whole purpose of the speed in lucene was that it was a file based NoSQL database. Why ruin it with
 EF?&lt;/p&gt;
&lt;/div&gt;</description><author>fabriciom</author><pubDate>Mon, 08 Oct 2012 19:29:23 GMT</pubDate><guid isPermaLink="false">New Post: Entity Framework? 20121008072923P</guid></item><item><title>New Post: Is there any sample of Repository Pattern?</title><link>http://linqtolucene.codeplex.com/discussions/398341</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi, i am looking for&lt;span style="text-decoration:underline"&gt; real world&lt;/span&gt; repository sample but i can not found it? Help me any one to guide sample repository declaration on asp.net. Thanks&lt;/p&gt;
&lt;/div&gt;</description><author>omerfarukz</author><pubDate>Sat, 06 Oct 2012 23:05:08 GMT</pubDate><guid isPermaLink="false">New Post: Is there any sample of Repository Pattern? 20121006110508P</guid></item><item><title>Source code checked in, #96133</title><link>http://linqtolucene.codeplex.com/SourceControl/changeset/changes/96133</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:40:31 GMT</pubDate><guid isPermaLink="false">Source code checked in, #96133 20121001094031P</guid></item><item><title>Source code checked in, #96132</title><link>http://linqtolucene.codeplex.com/SourceControl/changeset/changes/96132</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:33:03 GMT</pubDate><guid isPermaLink="false">Source code checked in, #96132 20121001093303P</guid></item><item><title>Created Issue: Not possible to select to a new object... [15620]</title><link>http://linqtolucene.codeplex.com/workitem/15620</link><description>var pp &amp;#61; &amp;#40;from  p in runs&lt;br /&gt;                              where&lt;br /&gt;                                  p.Field &amp;#61;&amp;#61; field &amp;#38;&amp;#38;&lt;br /&gt;                                  p.Value.Between&amp;#40;value1, value2&amp;#41;&lt;br /&gt;                              select p&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                    foreach&amp;#40;var ppp in pp&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        runList.Add&amp;#40;new IndexedRunContainer &amp;#123; StoredIndex &amp;#61; ppp.Index, Position &amp;#61; ppp.Position &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Totally useless.... I give up &amp;#33;&lt;br /&gt;</description><author>cmwalolo</author><pubDate>Mon, 17 Sep 2012 11:37:50 GMT</pubDate><guid isPermaLink="false">Created Issue: Not possible to select to a new object... [15620] 20120917113750A</guid></item><item><title>Created Issue: LINQ Queries  and CompareTo [15619]</title><link>http://linqtolucene.codeplex.com/workitem/15619</link><description>return &amp;#40;from IndexedValueSetAndRun p in runs.Where&amp;#40;p&amp;#61;&amp;#62; &lt;br /&gt;                            p.Field &amp;#61;&amp;#61; field &amp;#38;&amp;#38;&lt;br /&gt;                            &amp;#40;p.Value.CompareTo&amp;#40;value1&amp;#41; &amp;#62;&amp;#61; 0 &amp;#38;&amp;#38; p.Value.CompareTo&amp;#40;value2&amp;#41; &amp;#60;&amp;#61; 0&amp;#41;&amp;#41;&lt;br /&gt;                            select new IndexedRunContainer &amp;#123; StoredIndex &amp;#61; p.Index, Position &amp;#61; p.Position &amp;#125;&amp;#41;.ToList&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#123;&amp;#34;Method &amp;#39;CompareTo&amp;#39; has no supported translation to Lucene&amp;#34;&amp;#125;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m so happy to have started with it...  &amp;#33; Source code is not compiling &amp;#40;compiling but not working&amp;#41;... And Binaries do not fit &amp;#58;-&amp;#41;&lt;br /&gt;</description><author>cmwalolo</author><pubDate>Mon, 17 Sep 2012 11:09:32 GMT</pubDate><guid isPermaLink="false">Created Issue: LINQ Queries  and CompareTo [15619] 20120917110932A</guid></item><item><title>New Post: Please Keep Up The Good Work!</title><link>http://linqtolucene.codeplex.com/discussions/394627</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;stemarie&lt;/p&gt;
&lt;p&gt;Lucene is an awesomely powerful search engine. But with it's awesomeness also&amp;nbsp;comes a high degree of difficulty for implementation. LINQ to Lucene has simplified Lucene&amp;nbsp;implementation while providing LINQ programmers with a familiar environment.
 Documentation is sparse and I would be willing to help compile any information you have or know of on the topic of LINQ to Lucene.&lt;/p&gt;
&lt;p&gt;LINQ to Lucene is a wonderful project and you should continue with its development. As this project matures, more people will come to understand that LINQ to Lucene is&amp;nbsp;a simple, user-friendly&amp;nbsp;answer to thier &amp;quot;Full-Text Indexing&amp;quot; needs. Keep the
 faith and stay with the program, bro. It really is that awesome!&lt;/p&gt;
&lt;/div&gt;</description><author>M3</author><pubDate>Thu, 06 Sep 2012 12:06:52 GMT</pubDate><guid isPermaLink="false">New Post: Please Keep Up The Good Work! 20120906120652P</guid></item><item><title>New Post: Create index in database</title><link>http://linqtolucene.codeplex.com/discussions/394510</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi, Is there any way to create indexes directly in the database? Is this technique interesting?&lt;/p&gt;
&lt;p&gt;Using this technique, the processes of create indexes and search could lose performance?&lt;/p&gt;
&lt;/div&gt;</description><author>tulioccalazans</author><pubDate>Wed, 05 Sep 2012 16:42:51 GMT</pubDate><guid isPermaLink="false">New Post: Create index in database 20120905044251P</guid></item><item><title>Source code checked in, #94040</title><link>http://linqtolucene.codeplex.com/SourceControl/changeset/changes/94040</link><description></description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 18:51:47 GMT</pubDate><guid isPermaLink="false">Source code checked in, #94040 20120720065147P</guid></item><item><title>New Post: Is the project active?</title><link>http://linqtolucene.codeplex.com/discussions/373743</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I'm guessing it's probably a design issue and maybe not an implementation issue.&lt;/p&gt;
&lt;p&gt;Here's what I do:&lt;/p&gt;
&lt;p&gt;A1) Define a EfDatabaseIndexSet with a DbContext&lt;/p&gt;
&lt;p&gt;A2) Load some objects in the DbContext&lt;/p&gt;
&lt;p&gt;A3) Do index.Write&amp;lt;T&amp;gt;()&lt;/p&gt;
&lt;p&gt;A4) Run queries on index&lt;/p&gt;
&lt;p&gt;At this point, you can read objects fine.&lt;/p&gt;
&lt;p&gt;However, if you let the application finish, and run again with:&lt;/p&gt;
&lt;p&gt;B1) Create EfDatabaseIndexSet&lt;/p&gt;
&lt;p&gt;B2) Try to query =&amp;gt; no results because index was deleted on initialization&lt;/p&gt;
&lt;p&gt;So what I figured out I had to do is:&lt;/p&gt;
&lt;p&gt;C1) Do A1-A3 to create the index from the existing database objects&lt;/p&gt;
&lt;p&gt;C2) Call index.Get&amp;lt;T&amp;gt;().Dispose&lt;/p&gt;
&lt;p&gt;C3) Create a new Index&amp;lt;T&amp;gt; with the same AzureDirectory object&lt;/p&gt;
&lt;p&gt;C4) Run queries successfully&lt;/p&gt;
&lt;p&gt;So, it's possible - just a bit counter-intuitive... I would have expected that the Db Helper can:&lt;/p&gt;
&lt;p&gt;a) Index the existing DB objects (does this) the first it is run&lt;/p&gt;
&lt;p&gt;b) Read/Update and existing index with manual steps&lt;/p&gt;
&lt;p&gt;c) If possible, update the index automatically - probably too chaotic to implement&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Georgios&lt;/p&gt;&lt;/div&gt;</description><author>georgiosd</author><pubDate>Fri, 20 Jul 2012 14:33:08 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120720023308P</guid></item><item><title>Commented Issue: Bug that resets indexes [15433]</title><link>http://linqtolucene.codeplex.com/workitem/15433</link><description>It seems that EfDatabaseIndexSet.Write&amp;#60;T&amp;#62;&amp;#40;&amp;#41; generates the index fine, I can query and everything.&lt;br /&gt;&lt;br /&gt;However, if I reload the application, the index gets deleted and I have to recreate it.&lt;br /&gt;&lt;br /&gt;Is there any way to override this behavior&amp;#63; I want to generate the index on demand and add objects as I add them to the DB.&lt;br /&gt;Comments: ** Comment from web user: stemarie ** &lt;p&gt;Because lock is never released, it forced a recreation of the index as a safety measure.&lt;br /&gt;This will have to be changed as I consider it unacceptable since data could be lost.&lt;/p&gt;</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 14:22:03 GMT</pubDate><guid isPermaLink="false">Commented Issue: Bug that resets indexes [15433] 20120720022203P</guid></item><item><title>Commented Issue: Bug that resets indexes [15433]</title><link>http://linqtolucene.codeplex.com/workitem/15433</link><description>It seems that EfDatabaseIndexSet.Write&amp;#60;T&amp;#62;&amp;#40;&amp;#41; generates the index fine, I can query and everything.&lt;br /&gt;&lt;br /&gt;However, if I reload the application, the index gets deleted and I have to recreate it.&lt;br /&gt;&lt;br /&gt;Is there any way to override this behavior&amp;#63; I want to generate the index on demand and add objects as I add them to the DB.&lt;br /&gt;Comments: ** Comment from web user: stemarie ** &lt;p&gt;write.lock is also left there&lt;/p&gt;</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:57:06 GMT</pubDate><guid isPermaLink="false">Commented Issue: Bug that resets indexes [15433] 20120720015706P</guid></item><item><title>Commented Issue: Bug that resets indexes [15433]</title><link>http://linqtolucene.codeplex.com/workitem/15433</link><description>It seems that EfDatabaseIndexSet.Write&amp;#60;T&amp;#62;&amp;#40;&amp;#41; generates the index fine, I can query and everything.&lt;br /&gt;&lt;br /&gt;However, if I reload the application, the index gets deleted and I have to recreate it.&lt;br /&gt;&lt;br /&gt;Is there any way to override this behavior&amp;#63; I want to generate the index on demand and add objects as I add them to the DB.&lt;br /&gt;Comments: ** Comment from web user: stemarie ** &lt;p&gt;Repro steps&amp;#58;&lt;br /&gt;Run Demo.exe&lt;br /&gt;Index is created&lt;br /&gt;Run Demo.exe&lt;br /&gt;On Line 150 of IndexSet.cs the index is reinitialized&lt;/p&gt;&lt;p&gt;Code&amp;#58;&lt;br /&gt;&amp;#47;&amp;#47; create the index using the single LDirectory parameter ctor&lt;br /&gt;context &amp;#61; Activator.CreateInstance&amp;#40;genericIndexType, LuceneDirectory&amp;#41; as IIndex&amp;#59;&lt;/p&gt;</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:56:48 GMT</pubDate><guid isPermaLink="false">Commented Issue: Bug that resets indexes [15433] 20120720015648P</guid></item><item><title>New Post: Is the project active?</title><link>http://linqtolucene.codeplex.com/discussions/373743</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Georgiosd,&lt;/p&gt;
&lt;p&gt;If possible, can you give me the simplest repro-steps so that I can reproduce with minimal effort and just use my time to fix it?&lt;/p&gt;
&lt;p&gt;Would much appreciate it - thanks,&lt;/p&gt;&lt;/div&gt;</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:48:29 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120720014829P</guid></item><item><title>Source code checked in, #94033</title><link>http://linqtolucene.codeplex.com/SourceControl/changeset/changes/94033</link><description></description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:46:35 GMT</pubDate><guid isPermaLink="false">Source code checked in, #94033 20120720014635P</guid></item><item><title>Source code checked in, #94032</title><link>http://linqtolucene.codeplex.com/SourceControl/changeset/changes/94032</link><description>Branched from &amp;#36;&amp;#47;linqtolucene&amp;#47;trunk</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:44:42 GMT</pubDate><guid isPermaLink="false">Source code checked in, #94032 20120720014442P</guid></item><item><title>Source code checked in, #94031</title><link>http://linqtolucene.codeplex.com/SourceControl/changeset/changes/94031</link><description>Minor refactoring</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:43:54 GMT</pubDate><guid isPermaLink="false">Source code checked in, #94031 20120720014354P</guid></item></channel></rss>