On Apr 14, 2009, at 5:38 AM, Sagar Khetkade wrote:
Hi,
I am using SolrJ and firing the query on Solr indexes. The indexed
contains three fields viz.
1. Document_id (type=integer required= true)
2. Ticket Id (type= integer)
3. Content (type=text)
Here the query formulation is such that I am having query with “AND”
clause. So the query, that I am firing on index files look like
“Content: search query AND Ticket_id:123 Ticket_Id:789)”.
That query is invalid query parser syntax, with an unopen paren first
of all. I assume that's a typo though. Be careful in how you
construct queries with field selectors. Saying:
Content:search query
does NOT necessarily mean that the term "query" is being searched in
the Content field, as that depends on your default field setting for
the query parser. This, however, does use the Content field for both
terms:
Content:(search query)
I know this type of query is easily fired on lucene indexes. But
when I am firing the above query I am not getting the required
result . The result contains the document which does not belongs to
the ticket id mentioned in the query.
Please can anyone help me out of this issue.
What does the query parse to with &debugQuery output? That's mighty
informative info.
Erik