org.elasticsearch.index.mapper
Class MapperService.SmartNameFieldMappers

java.lang.Object
  extended by org.elasticsearch.index.mapper.MapperService.SmartNameFieldMappers
Enclosing class:
MapperService

public static class MapperService.SmartNameFieldMappers
extends Object


Constructor Summary
MapperService.SmartNameFieldMappers(MapperService mapperService, FieldMappers fieldMappers, DocumentMapper docMapper, boolean explicitTypeInName)
           
 
Method Summary
 DocumentMapper docMapper()
          If the smart name was a typed field, with a type that we resolved, will return the document mapper for it.
 boolean explicitTypeInName()
          Returns true if the type is explicitly specified in the name.
 boolean explicitTypeInNameWithDocMapper()
           
 FieldMappers fieldMappers()
          All the field mappers for the smart name field.
 boolean hasDocMapper()
          If the smart name was a typed field, with a type that we resolved, will return true.
 boolean hasMapper()
          Has at least one mapper for the field.
 FieldMapper mapper()
          The first mapper for the smart named field.
 org.apache.lucene.analysis.Analyzer searchAnalyzer()
          The best effort search analyzer associated with this field.
 org.apache.lucene.analysis.Analyzer searchQuoteAnalyzer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapperService.SmartNameFieldMappers

public MapperService.SmartNameFieldMappers(MapperService mapperService,
                                           FieldMappers fieldMappers,
                                           @Nullable
                                           DocumentMapper docMapper,
                                           boolean explicitTypeInName)
Method Detail

hasMapper

public boolean hasMapper()
Has at least one mapper for the field.


mapper

public FieldMapper mapper()
The first mapper for the smart named field.


fieldMappers

public FieldMappers fieldMappers()
All the field mappers for the smart name field.


hasDocMapper

public boolean hasDocMapper()
If the smart name was a typed field, with a type that we resolved, will return true.


docMapper

public DocumentMapper docMapper()
If the smart name was a typed field, with a type that we resolved, will return the document mapper for it.


explicitTypeInName

public boolean explicitTypeInName()
Returns true if the type is explicitly specified in the name.


explicitTypeInNameWithDocMapper

public boolean explicitTypeInNameWithDocMapper()

searchAnalyzer

public org.apache.lucene.analysis.Analyzer searchAnalyzer()
The best effort search analyzer associated with this field.


searchQuoteAnalyzer

public org.apache.lucene.analysis.Analyzer searchQuoteAnalyzer()


Copyright © 2009-2012. All Rights Reserved.