Skip to content

Commit 8f23e0b

Browse files
paulirwinclaude
andauthored
Support negation and decimal literals in OData filter queries (#28)
Adds handling for "not <field> <op> <value>" expressions, which OData parses as "(not <field>) <op> <value>", by wrapping the underlying comparison in a MUST_NOT boolean clause. Also adds decimal literal support and switches float range queries to double ranges to match how numeric fields are indexed. Introduces an xUnit test project covering the visitor and LuceneNetIndexSearcher. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent b472288 commit 8f23e0b

6 files changed

Lines changed: 1856 additions & 5 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<IsTestProject>true</IsTestProject>
8+
<WarningsAsErrors>nullable</WarningsAsErrors>
9+
<IsPackable>false</IsPackable>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<PackageReference Include="xunit" Version="2.9.3" />
14+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
15+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16+
<PrivateAssets>all</PrivateAssets>
17+
</PackageReference>
18+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
19+
</ItemGroup>
20+
21+
<ItemGroup>
22+
<ProjectReference Include="..\AzureSearchEmulator\AzureSearchEmulator.csproj" />
23+
</ItemGroup>
24+
25+
</Project>

0 commit comments

Comments
 (0)