NullPointerException when trying to use Fast Highlighter

I'm new to ElasticSearch. I'm using 0.18.2. I have a 1 node
cluster, my index has 2 shards and 1 replica.

I have a type, with a mapping with a field like this.

			"name": {
				  "type": "string",
				  "boost" : 3.0,
				  "index": "analyzed",
            	                   "store": "yes",
                                       "term_vector":

"with_positions_offsets"
}

With the store and term_vector fields defined, I get a
NullPointerException and no results returned.

[2011-11-14 22:44:16,984][DEBUG][action.search.type ] [Node1]
[11] Failed to execute fetch phase
java.lang.NullPointerException
at
org.apache.lucene.search.vectorhighlight.CustomFieldQuery.flatten(CustomFieldQuery.java:
148)
at
org.apache.lucene.search.vectorhighlight.CustomFieldQuery.flatten(CustomFieldQuery.java:
107)
at
org.apache.lucene.search.vectorhighlight.FieldQuery.(FieldQuery.java:
57)
at
org.apache.lucene.search.vectorhighlight.CustomFieldQuery.(CustomFieldQuery.java:
63)
at
org.apache.lucene.search.vectorhighlight.CustomFieldQuery.(CustomFieldQuery.java:
59)
at
org.elasticsearch.search.highlight.HighlightPhase.buildFieldQuery(HighlightPhase.java:
262)
at
org.elasticsearch.search.highlight.HighlightPhase.execute(HighlightPhase.java:
234)
at
org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:206)
at
org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:
391)...

If I remove the store and term_vector fields, highlighting works fine.

Please let me know if you need more information, I can create a curl
recreation.

Its a bug, found hte problem and will push a fix in master and 0.18, github
seems to be acting for me, so can't currently open an issue...

On Tue, Nov 15, 2011 at 5:48 PM, Andy apryor48@gmail.com wrote:

I'm new to Elasticsearch. I'm using 0.18.2. I have a 1 node
cluster, my index has 2 shards and 1 replica.

I have a type, with a mapping with a field like this.

                           "name": {
                                     "type": "string",
                                     "boost" : 3.0,
                                     "index": "analyzed",
                                      "store": "yes",
                                      "term_vector":

"with_positions_offsets"
}

With the store and term_vector fields defined, I get a
NullPointerException and no results returned.

[2011-11-14 22:44:16,984][DEBUG][action.search.type ] [Node1]
[11] Failed to execute fetch phase
java.lang.NullPointerException
at

org.apache.lucene.search.vectorhighlight.CustomFieldQuery.flatten(CustomFieldQuery.java:
148)
at

org.apache.lucene.search.vectorhighlight.CustomFieldQuery.flatten(CustomFieldQuery.java:
107)
at
org.apache.lucene.search.vectorhighlight.FieldQuery.(FieldQuery.java:
57)
at

org.apache.lucene.search.vectorhighlight.CustomFieldQuery.(CustomFieldQuery.java:
63)
at

org.apache.lucene.search.vectorhighlight.CustomFieldQuery.(CustomFieldQuery.java:
59)
at

org.elasticsearch.search.highlight.HighlightPhase.buildFieldQuery(HighlightPhase.java:
262)
at

org.elasticsearch.search.highlight.HighlightPhase.execute(HighlightPhase.java:
234)
at
org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:206)
at

org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:
391)...

If I remove the store and term_vector fields, highlighting works fine.

Please let me know if you need more information, I can create a curl
recreation.