(no subject)

I am working with elasticsearch query string

Here is what I did
SearchRequestBuilder builder = client.prepareSearch("indexname");

QueryStringQueryBuilder qb5 = QueryBuilders.queryString("some text")
.analyzer("standard")
.defaultOperator(QueryStringQueryBuilder.Operator.AND)
.field("_all")
.allowLeadingWildcard(false)
.useDisMax(true);

builder.setQuery(qb5);
when i search
SearchResponse rsp = builder.setSize(30).execute().actionGet();
It throws the following exception
org.elasticsearch.action.search.SearchPhaseExecutionException:

Could you tell me what is this exception

org.elasticsearch.action.search.SearchPhaseExecutionException:
On Tue, Mar 6, 2012 at 4:41 PM, jajoria abhishek <jajoria.abhishek@gmail.com

wrote:

I am working with elasticsearch query string

Here is what I did
SearchRequestBuilder builder = client.prepareSearch("indexname");

QueryStringQueryBuilder qb5 = QueryBuilders.queryString("some text")
.analyzer("standard")
.defaultOperator(QueryStringQueryBuilder.Operator.AND)
.field("_all")
.allowLeadingWildcard(false)
.useDisMax(true);

builder.setQuery(qb5);
when i search
SearchResponse rsp = builder.setSize(30).execute().actionGet();
It throws the following exception
org.elasticsearch.action.search.SearchPhaseExecutionException:

Can you gist the actual failure? including stack trace. You can probably find it in ES logs.

On Tuesday, March 6, 2012 at 1:12 PM, jajoria abhishek wrote:

Could you tell me what is this exception

org.elasticsearch.action.search.SearchPhaseExecutionException:
On Tue, Mar 6, 2012 at 4:41 PM, jajoria abhishek <jajoria.abhishek@gmail.com (mailto:jajoria.abhishek@gmail.com)> wrote:

I am working with elasticsearch query string

Here is what I did
SearchRequestBuilder builder = client.prepareSearch("indexname");

QueryStringQueryBuilder qb5 = QueryBuilders.queryString("some text")
.analyzer("standard")
.defaultOperator(QueryStringQueryBuilder.Operator.AND)
.field("_all")
.allowLeadingWildcard(false)
.useDisMax(true);

builder.setQuery(qb5);
when i search
SearchResponse rsp = builder.setSize(30).execute().actionGet();
It throws the following exception
org.elasticsearch.action.search.SearchPhaseExecutionException:

Here is what I am giving you from es logs

Caused by: org.elasticsearch.index.query.QueryParsingException: [flipkart]
Failed to parse query [AniMation ?;' movies'klhlyh]
at
org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:203)
at
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:176)
at
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:232)
at
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:212)
at
org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:32)
at
org.elasticsearch.search.SearchService.parseSource(SearchService.java:549)
... 10 more
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse
'AniMation ?;' movies'klhlyh': '' or '?' not allowed as first character in
WildcardQuery
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)
at
org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:194)
... 15 more
Caused by: org.apache.lucene.queryParser.ParseException: '
' or '?' not
allowed as first character in WildcardQuery
at
org.apache.lucene.queryParser.QueryParser.getWildcardQuery(QueryParser.java:982)
at
org.apache.lucene.queryParser.MapperQueryParser.getPossiblyAnalyzedWildcardQuery(MapperQueryParser.java:277)
at
org.apache.lucene.queryParser.MapperQueryParser.getWildcardQuery(MapperQueryParser.java:267)
at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1406)
at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1309)
at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1266)
at
org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
... 16 more
[2012-03-06 17:00:11,171][DEBUG][action.search.type ] [raftaarnode]
[flipkart][3], node[So1zuZf1Q9C494BN8Z-2VQ], [P], s[STARTED]: Failed to
execute [org.elasticsearch.action.search.SearchRequest@1eb0eac]
org.elasticsearch.search.SearchParseException: [flipkart][3]:
from[-1],size[30]: Parse Failure [Failed to parse source [na]]
at
org.elasticsearch.search.SearchService.parseSource(SearchService.java:561)
at
org.elasticsearch.search.SearchService.createContext(SearchService.java:473)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:232)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:205)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:178)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.elasticsearch.index.query.QueryParsingException: [flipkart]
Failed to parse query [AniMation ?;' movies'klhlyh]
at
org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:203)
at
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:176)
at
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:232)
at
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:212)
at
org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:32)
at
org.elasticsearch.search.SearchService.parseSource(SearchService.java:549)
... 10 more
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse
'AniMation ?;' movies'klhlyh': '' or '?' not allowed as first character in
WildcardQuery
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)
at
org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:194)
... 15 more
Caused by: org.apache.lucene.queryParser.ParseException: '
' or '?' not
allowed as first character in WildcardQuery
at
org.apache.lucene.queryParser.QueryParser.getWildcardQuery(QueryParser.java:982)
at
org.apache.lucene.queryParser.MapperQueryParser.getPossiblyAnalyzedWildcardQuery(MapperQueryParser.java:277)
at
org.apache.lucene.queryParser.MapperQueryParser.getWildcardQuery(MapperQueryParser.java:267)
at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1406)
at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1309)
at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1266)
at
org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
... 16 more

On Wed, Mar 7, 2012 at 1:36 AM, Shay Banon kimchy@gmail.com wrote:

Can you gist the actual failure? including stack trace. You can probably
find it in ES logs.

On Tuesday, March 6, 2012 at 1:12 PM, jajoria abhishek wrote:

Could you tell me what is this exception

org.elasticsearch.action.search.SearchPhaseExecutionException:
On Tue, Mar 6, 2012 at 4:41 PM, jajoria abhishek <
jajoria.abhishek@gmail.com> wrote:

I am working with elasticsearch query string

Here is what I did
SearchRequestBuilder builder = client.prepareSearch("indexname");

QueryStringQueryBuilder qb5 = QueryBuilders.queryString("some text")
.analyzer("standard")
.defaultOperator(QueryStringQueryBuilder.Operator.AND)
.field("_all")
.allowLeadingWildcard(false)
.useDisMax(true);

builder.setQuery(qb5);
when i search
SearchResponse rsp = builder.setSize(30).execute().actionGet();
It throws the following exception
org.elasticsearch.action.search.SearchPhaseExecutionException:

Sir,
Actually it works fine with symbol other than ? when I use with string.
like
"text.*-text"
but when I use ?
like "text ?text" it throws this exception why?

On Wed, Mar 7, 2012 at 10:56 AM, jajoria abhishek <
jajoria.abhishek@gmail.com> wrote:

Here is what I am giving you from es logs

Caused by: org.elasticsearch.index.query.QueryParsingException: [flipkart]
Failed to parse query [AniMation ?;' movies'klhlyh]
at
org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:203)
at
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:176)
at
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:232)
at
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:212)
at
org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:32)
at
org.elasticsearch.search.SearchService.parseSource(SearchService.java:549)
... 10 more
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse
'AniMation ?;' movies'klhlyh': '' or '?' not allowed as first character in
WildcardQuery
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)
at
org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:194)
... 15 more
Caused by: org.apache.lucene.queryParser.ParseException: '
' or '?' not
allowed as first character in WildcardQuery
at
org.apache.lucene.queryParser.QueryParser.getWildcardQuery(QueryParser.java:982)
at
org.apache.lucene.queryParser.MapperQueryParser.getPossiblyAnalyzedWildcardQuery(MapperQueryParser.java:277)
at
org.apache.lucene.queryParser.MapperQueryParser.getWildcardQuery(MapperQueryParser.java:267)
at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1406)
at
org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1309)
at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1266)
at
org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
... 16 more
[2012-03-06 17:00:11,171][DEBUG][action.search.type ] [raftaarnode]
[flipkart][3], node[So1zuZf1Q9C494BN8Z-2VQ], [P], s[STARTED]: Failed to
execute [org.elasticsearch.action.search.SearchRequest@1eb0eac]
org.elasticsearch.search.SearchParseException: [flipkart][3]:
from[-1],size[30]: Parse Failure [Failed to parse source [na]]
at
org.elasticsearch.search.SearchService.parseSource(SearchService.java:561)
at
org.elasticsearch.search.SearchService.createContext(SearchService.java:473)
at
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:232)
at
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:134)
at
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:205)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192)
at
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:178)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.elasticsearch.index.query.QueryParsingException: [flipkart]
Failed to parse query [AniMation ?;' movies'klhlyh]
at
org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:203)
at
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:176)
at
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:232)
at
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:212)
at
org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:32)
at
org.elasticsearch.search.SearchService.parseSource(SearchService.java:549)
... 10 more
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse
'AniMation ?;' movies'klhlyh': '' or '?' not allowed as first character in
WildcardQuery
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)
at
org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:194)
... 15 more
Caused by: org.apache.lucene.queryParser.ParseException: '
' or '?' not
allowed as first character in WildcardQuery
at
org.apache.lucene.queryParser.QueryParser.getWildcardQuery(QueryParser.java:982)
at
org.apache.lucene.queryParser.MapperQueryParser.getPossiblyAnalyzedWildcardQuery(MapperQueryParser.java:277)
at
org.apache.lucene.queryParser.MapperQueryParser.getWildcardQuery(MapperQueryParser.java:267)
at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1406)
at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1309)
at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1266)
at
org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
... 16 more

On Wed, Mar 7, 2012 at 1:36 AM, Shay Banon kimchy@gmail.com wrote:

Can you gist the actual failure? including stack trace. You can probably
find it in ES logs.

On Tuesday, March 6, 2012 at 1:12 PM, jajoria abhishek wrote:

Could you tell me what is this exception

org.elasticsearch.action.search.SearchPhaseExecutionException:
On Tue, Mar 6, 2012 at 4:41 PM, jajoria abhishek <
jajoria.abhishek@gmail.com> wrote:

I am working with elasticsearch query string

Here is what I did
SearchRequestBuilder builder = client.prepareSearch("indexname");

QueryStringQueryBuilder qb5 = QueryBuilders.queryString("some text")
.analyzer("standard")
.defaultOperator(QueryStringQueryBuilder.Operator.AND)
.field("_all")
.allowLeadingWildcard(false)
.useDisMax(true);

builder.setQuery(qb5);
when i search
SearchResponse rsp = builder.setSize(30).execute().actionGet();
It throws the following exception
org.elasticsearch.action.search.SearchPhaseExecutionException: