Beispiel #1
0
	    public QueryState(QueryModel model)
	    {
			IndexName = model.IndexName;
			Query = model.Query;
			SortOptions = model.SortBy.Select(r => r.Value).ToList();
			
			if (model.IsSpatialQuery)
			{
				IsSpatialQuery = model.IsSpatialQuery;
				SpatialFieldName = model.SpatialQuery.FieldName;
				Latitude = model.SpatialQuery.Y;
				Longitude = model.SpatialQuery.X;
				Radius = model.SpatialQuery.Radius;
			}

			DefaultOperator = model.DefaultOperator;
			ShowFields = model.ShowFields;
			ShowEntries = model.ShowEntries;
			UseTransformer = model.UseTransformer;
			SkipTransform = model.SkipTransformResults;
			Transformer = model.SelectedTransformer.Value;
	    }
Beispiel #2
0
			public RepairTermInQueryCommand(QueryModel model)
			{
				this.model = model;
			}
Beispiel #3
0
			public RemoveSortByCommand(QueryModel model)
			{
				this.model = model;
			}
		public ExecuteQueryCommand(QueryModel model)
		{
			this.model = model;
		}
		public CalculateGeocodeFromAddressCommand(QueryModel queryModel)
		{
			this.queryModel = queryModel;
		}
Beispiel #6
0
 public ExecuteQueryCommand(QueryModel model, IAsyncDatabaseCommands asyncDatabaseCommands)
 {
     this.model = model;
     this.asyncDatabaseCommands = asyncDatabaseCommands;
 }
Beispiel #7
0
 public RepairTermInQueryCommand(QueryModel model)
 {
     this.model = model;
 }
Beispiel #8
0
 public RemoveSortByCommand(QueryModel model)
 {
     this.model = model;
 }