<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>linqtolucene Forum Rss Feed</title><link>http://www.codeplex.com/linqtolucene/Thread/List.aspx</link><description>linqtolucene Forum Rss Description</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>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>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>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>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;I created item 15433 for the bug you&amp;nbsp;mentioned, I'm trying to find it&lt;/p&gt;&lt;/div&gt;</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:43:37 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120720014337P</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;udkadam,&lt;/p&gt;
&lt;p&gt;What are you proposing?&lt;/p&gt;
&lt;p&gt;I'm a developer for LinqToLucene&lt;/p&gt;&lt;/div&gt;</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:32:50 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120720013250P</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;I've put in the new constructor.&lt;/p&gt;&lt;/div&gt;</description><author>stemarie</author><pubDate>Fri, 20 Jul 2012 13:30:43 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120720013043P</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;Does anybody interested to contribute to this project ?&lt;/p&gt;
&lt;p&gt;We at &lt;a title="Agrobytes IT Services Pvt. Ltd." href="http://agrobytes.com" target="_blank"&gt;Agrobytes &lt;/a&gt;Planning to create REST APIs over this using WCF and make it similar to Solr implementation.&lt;/p&gt;
&lt;p&gt;Please let me know &amp;nbsp;- we all can work together and create good search product over MS technologies. If somebody needs exact road map of our development - I would be happy to share it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically we are planning to use this in one of our social network.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;/div&gt;</description><author>udkadam</author><pubDate>Fri, 20 Jul 2012 06:52:03 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120720065203A</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;Hm... next question: It seems that EfDatabaseIndexSet.Write&amp;lt;T&amp;gt;() generates the index fine, I can query and everything.&lt;/p&gt;
&lt;p&gt;However, if I reload the application, the index gets deleted and I have to recreate it.&lt;/p&gt;
&lt;p&gt;Is there any way to override this behavior? I want to generate the index on demand and add objects as I add them to the DB.&lt;/p&gt;&lt;/div&gt;</description><author>georgiosd</author><pubDate>Thu, 19 Jul 2012 11:03:15 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120719110315A</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;OK I found it - please add this ctor to EfDatabaseIndexSet:&lt;/p&gt;
&lt;p&gt;public AcceleratorIndexContext(Directory directory, AcceleratorContext dataContext)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : base(directory, dataContext)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This way, I can pass an AzureDirectory in.&lt;/p&gt;&lt;/div&gt;</description><author>georgiosd</author><pubDate>Thu, 19 Jul 2012 10:04:42 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120719100442A</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;And a quick question - when using the EFDatabaseIndexSet you've made, is it possible to store the file on an Azure blob, like in Demo3?&lt;/p&gt;
&lt;/div&gt;</description><author>georgiosd</author><pubDate>Thu, 19 Jul 2012 09:40:08 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120719094008A</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;Are there any particular weakness points that you'd be worried about ? You seem to make good use of unit tests so how bad can it be? :)&lt;/p&gt;
&lt;p&gt;We'll have some unit tests also - I mean, they won't cover such an extensive range of scenarios but it's better than nothing.&lt;/p&gt;
&lt;p&gt;It's a great project so I would love to help you with LINQ but I very much doubt my knowledge of LINQ is better than yours!&lt;br /&gt;Have you considered getting some help from other projects that heavily use LINQ also?&lt;/p&gt;&lt;/div&gt;</description><author>georgiosd</author><pubDate>Thu, 19 Jul 2012 08:49:45 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120719084945A</guid></item><item><title>New Post: Reading an existing index</title><link>http://linqtolucene.codeplex.com/discussions/371270</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks Andrew, that's correct. Unfortunately stemarie is correct as well and existing Lucene.NET indexes created by other means cannot be queried using this project, which is unfortunate.&lt;/p&gt;&lt;/div&gt;</description><author>simone_b</author><pubDate>Wed, 18 Jul 2012 21:08:21 GMT</pubDate><guid isPermaLink="false">New Post: Reading an existing index 20120718090821P</guid></item><item><title>New Post: Reading an existing index</title><link>http://linqtolucene.codeplex.com/discussions/371270</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Simone_b&lt;/p&gt;
&lt;p&gt;I hit the exact same problem this PM. Seems that a write lock is held open (you'll see a write.lock in your index directory) this isn't deleted after you've created your index. When you open the index up again using new Index&amp;lt;yourDocType&amp;gt;(path) the CreateModifiers call in the IndexContext has "issues". It sees the lock and opts to create a new IndexWriter - re-creating your index. Therefore deleting the entire index. It fails with a timeout on being able to obtain a write lock.&lt;/p&gt;
&lt;p&gt;When you've created your index make sure you call Dispose on the Index instance. This gets rid of all the held locks and the write.lock file. When you open the index for querying make sure you call Dispose when you're done - opening the Index automatically creates a new write lock&lt;/p&gt;
&lt;p&gt;You can test this by deleting the write.lock file and then trying to re-open the index.&lt;/p&gt;&lt;/div&gt;</description><author>andrew_gayter</author><pubDate>Wed, 18 Jul 2012 19:31:08 GMT</pubDate><guid isPermaLink="false">New Post: Reading an existing index 20120718073108P</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 not sure if I would use it in production, but I'm a bit paranoid mind you. The Lucene.NET portion is very sturdy and comes straight out of the oven from the Lucene/Port at the Apache foundation - so no issues there. Any bugs would be located in the LinqToLucene library itself.&lt;/p&gt;
&lt;p&gt;The Linq implementation however is far from complete, make sure that if you do use it in production all the functions that you need are already available. I hit the ceiling of my Linq knowledge at the moment and need either a bit of help or to complete some research in order to take it to the next step.&lt;/p&gt;&lt;/div&gt;</description><author>stemarie</author><pubDate>Wed, 18 Jul 2012 17:39:15 GMT</pubDate><guid isPermaLink="false">New Post: Is the project active? 20120718053915P</guid></item></channel></rss>