I've just tried implementing the propertya s a property of Document
and it still doesnt work. The result is null. I wonder if I am coming
up against some sort of size limit or if there are characters in the
Text string that are causing it not to work. Are there any known size
limits or problematic characters? These strings are pretty long but
not excessively so.

On May 11, 3:48 pm, Jack Ryan <[email protected]> wrote:
> The data is stored. and the field is called File.Text. However my code
> that looks like this:
>
>             var parser = new MultiFieldQueryParser(new[]{"Name",
> "File.Text"}, new PorterStemAnalyzer());
>             var query = fullTextSession.CreateFullTextQuery
> (parser.Parse(QueryParser.Escape(search)));
>             query.SetProjection("ID", "FileName", "File.Text");
>             query.SetMaxResults(25);
>             var results = query.List<object[]>();
>
> does not find it. Its odd because it can search in File.Text, but not
> retrieve the data.
>
> On May 11, 3:44 pm, Jozef Sevcik <[email protected]> wrote:
>
> > what do you see with Luke in index file ?
>
> > 2009/5/11 Jack Ryan <[email protected]>:
>
> > > No, that just creates a second index on the File. Persisting the data
> > > twice instead of once.
>
> > > On May 11, 3:35 pm, Jozef Sevcik <[email protected]> wrote:
> > >> I'm not sure, but probably:
> > >> [Indexed]
> > >> pubic class File
>
> > >> 2009/5/11 Jack Ryan <[email protected]>:
>
> > >> > I have a one to one association with one entity marked as indexed and
> > >> > the link to the other marked as indexed embedded. Both entities have
> > >> > fields marked as store=yes. I can load the fields of the indexed
> > >> > entity by projection from the index, but the fields of the
> > >> > IndexedEmbedded entity always come back as null. The structure is
> > >> > shown below. Any ideas?
>
> > >> > [Indexed]
> > >> > public class Document
> > >> > {
> > >> >    [DocumentId]
> > >> >    public virtual int ID { get; set; }
>
> > >> >    [Field(Store = Store.Yes)]
> > >> >    public virtual string Name {get; set; }
>
> > >> >    [IndexedEmbedded]
> > >> >    public Virtual File File { get; set; }
> > >> > }
>
> > >> > pubic class File
> > >> > {
> > >> >    public virtual byte[] Data { get; set; }
>
> > >> >    [Field(Store = Store.Yes)]
> > >> >    public virtual string Text { get; set; }
> > >> > }
>
> > >> --
> > >> Jozef
>
> > --
> > Jozef
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to