IndexEmbedded으로 추가 된 데이터를 쿼리하려면 어떻게합니까?
나는 인덱스에 엔티티 클래스를IndexEmbedded으로 인덱싱 된 데이터를 쿼리하는 방법 (전체 텍스트는 nhibernate.search에 있음)
[Indexed]
public class Something
{
[Field(Index.Tokenized, Store = Store.Yes)]
public virtual string Description { get; set; }
[IndexedEmbedded]
public virtual Category Category { get; set; }
[IndexedEmbedded]
public virtual Location Location { get; set; }
}
위치
데이터가 추가됩니다[Indexed]
public class Location
{
/// </summary>
[Field(Index.Tokenized, Store = Store.Yes)]
public virtual string Address
{
}
로 (IndexEmbedded 일반 속성 모두)를하고 난 그들에게 누가 복음를 사용하여 볼 수 있습니다. 단지 일반 속성이 아니라 에 대한
내가 전체 텍스트를 사용하여 쿼리 할 때 그러나 내가 얻을 유효한 결과는
예를 IndexedEmbedded "샘플 설명"=> 한 결과, "팔로 알토 (Palo Alto)"=> 0 결과는 이것은
using (IFullTextSession s = Search.CreateFullTextSession(NHibernateSession.GetSession())) {
MultiFieldQuerParser qp = new MultiFieldQueryParser(new[] {
“Description”,“Title”,”Name”
}, new StandardAnalyzer());
IQuery NHQuery = s.CreateFullTextQuery(qp.Parse(query), typeof(Something));
result = NHQuery.List();
내가 뭔가 잘못하고 또는 아무것도 실종 내 쿼리입니다 (둘 다 인덱스에있는)?