Parse Exception. EF

Mar 13, 2013 at 9:21 PM
Edited Mar 13, 2013 at 9:23 PM
Hello, I have an error with stacktrace:
[ParseException: Encountered " ":" ": "" at line 1, column 14.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...
    ]
   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 " ":" ": "" at line 1, column 14.
Here is my class:
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 = "dbo.ContentBases")]
    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 = "title")]
        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();
        }

        /// <summary>
        /// Gets or sets the id.
        /// </summary>
        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));
            }
        }
    }
And usage:
Directory directory = new RAMDirectory();

            var myIndexContext = new MyIndexContext(directory, new MyContext());
            myIndexContext.Write<Page>();
            IQueryable<Page> query0 = from c in myIndexContext.Pages
                                      select c;

            IQueryable<Page> query1 = from c in myIndexContext.Pages
                                      where c.Title == "Page"
                                      select c;

            var list0 = query0.ToPagedList(page ?? 0, pageSize);
            var list1 = query1.ToPagedList(page ?? 0, pageSize);
There are 6 items in list0. And I got an error when try to fill list1.
When I remove attribute Field from Content property of ContentBase class, program works without errors.
Help me please.