I just checked out lucene and then quickly noticed this cool project and jumped immediately to it.
First of all great work throughout.
I have a few of very basic questions.
I'm trying to use es to provide search of email contacts by address and name. This will be limited by user.
So the consumer might search for "matt" and I want to return any contacts with the name "Matthew X"or the address "firstname.lastname@example.org"
In the solr test page i was able to make the query "owner:asdf1234 AND (name:matt* OR address:matt*)"
I can also do this with the es java api like so
setQuery(QueryBuilders.queryString("owner:asdf1234 AND (name:matt OR locator:matt")))
My index also has more info in it than these three fields.
- How do I write the DSL query for this string? I find it pretty confusing.
- How do I write that same DSL query in the java API?
- How do I limit the returned fields to just name and address?
- How do I write that part of the query with the java API?
Thanks and sorry for this overloaded post.