code: public static LuceneQueryFactory forTextIndex( ValueFactories factories,
                                                     Map<String, Object> variables,
                                                     Map<String, PropertyType> propertyTypesByName,
                                                     LuceneConfig config ) {
          return new TextQueryFactory(factories, variables, propertyTypesByName, config);
      }
docs: Creates a new query factory which can be used to produce Lucene queries for {@link org.modeshape.jcr.index.lucene.TextIndex}
  indexes.
  
  @param factories a {@link ValueFactories} instance; may not be null
  @param variables a {@link Map} instance which contains the query variables for a particular query; may be {@code null}
  @param propertyTypesByName a {@link Map} representing the columns and their types for the index definition
  for which the query should be created; may not be null.
  @param config a {@link LuceneConfig} instance required to get various information for FTS (e.g. configured analyzer); may
  not be null
  @return a {@link LuceneQueryFactory} instance, never {@code null}