Selecting an Analyzer

55 views
Skip to first unread message

Eniep Yrekcaz

unread,
Dec 7, 2012, 2:24:54 PM12/7/12
to rav...@googlegroups.com
I am trying to set up an index through the Studio UI. I have 3 fields: Content, BrokerId, ObjectType

Field: Content
Storage: No
Indexing: Analyzed
Sort: None
Analyzer:

Field: BrokerId
Storage: No
Indexing: NotAnalyzed
Sort: None
Analyzer:

Field: ObjectType
Storage: No
Indexing: NotAnalyzed
Sort: None
Analyzer:

Here are my questions. When I try to 'select' an Analyzer by typing in WhitespaceAnalyzer in the Analyzer field and then click save, the analyzer doesn't seem to save. How can I choose an analyzer?
Also, when I click on Terms in the upper right hand corner, I see all the fields, but Content is displayed as a list of doubles. I don't see any actual terms there, but in the other fields, I see the actual content. Is that supposed to be this way or is that an indication that no indexing is being performed on that field currently?

When I perform my first search against one of my defined indexes, it takes ~5s and then subsequent searches are ~50ms. Is that an indication that Raven is creating a dynamic index and not utilizing my predefined one?
Thanks.

Oren Eini (Ayende Rahien)

unread,
Dec 8, 2012, 3:04:42 AM12/8/12
to rav...@googlegroups.com
What build are you using? What is the full index definition? How are you running this query

Eniep Yrekcaz

unread,
Dec 10, 2012, 9:37:05 AM12/10/12
to rav...@googlegroups.com
Index definition(also has the fields included above):
AccountsSearch
docs.Accounts
.Select(account => new () { BrokerId = account.BrokerId, 
Content = new System.Object []{account.Name, account.Phone, account.Fax},
ObjectType = "Accounts" })
server build 960, client build 960
query:
session.Query<RavenResult>(searchCategory + "Search").Statistics(out stats)
                                                     .Where(x => x.BrokerId == brokerId
                                                     .Search(x => x.Contentquery + "*",
                                                                  optionsRaven.Client.Linq.SearchOptions.And,
                                                                  escapeQueryOptionsEscapeQueryOptions.AllowPostfixWildcard)
                                                     .As<Object>()
                                                     .Skip(searchOptions.PageIndex * searchOptions.PageSize)
                                                     .Take(searchOptions.PageSize + 1)
                                                     .Lazily();
var results = query.LazyQuery.Value.ToList();

Oren Eini (Ayende Rahien)

unread,
Dec 11, 2012, 4:33:43 AM12/11/12
to rav...@googlegroups.com
Can you try this using 2.0?

Eniep Yrekcaz

unread,
Dec 11, 2012, 10:35:49 AM12/11/12
to rav...@googlegroups.com
I can try this, but we need to have this be test ready. Once this is up and running we will test out the system in our environments and decide whether or not to buy Raven. I don't see a 2.0 stable build, do you know when that will be available?
Thanks!

Oren Eini (Ayende Rahien)

unread,
Dec 12, 2012, 10:10:41 AM12/12/12
to rav...@googlegroups.com
We will have a stable later this month.
And you can just use the RC builds now.
Reply all
Reply to author
Forward
0 new messages