Skip to content

Commit d5d68c7

Browse files
committed
Rename project
1 parent 14a9900 commit d5d68c7

File tree

74 files changed

+629
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+629
-161
lines changed

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"type": "shell",
4444
"command": "dotnet run -c Release",
4545
"options": {
46-
"cwd": "${workspaceFolder}/benchmarks/Foundatio.LuceneQueryParser.Benchmarks"
46+
"cwd": "${workspaceFolder}/benchmarks/Foundatio.LuceneQuery.Benchmarks"
4747
},
4848
"problemMatcher": [],
4949
"presentation": {

AGENTS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AI Agent Instructions for Foundatio.LuceneQueryParser
1+
# AI Agent Instructions for Foundatio.LuceneQuery
22

33
## Architecture Overview
44

@@ -11,8 +11,8 @@ Query String → LuceneLexer (tokens) → LuceneParser (AST) → Visitors (trans
1111

1212
### Key Components
1313
- **`LuceneQuery.Parse()`** - Main entry point; returns `LuceneParseResult` with `Document` (AST) and `Errors`
14-
- **`src/Foundatio.LuceneQueryParser/Ast/`** - AST node types (`TermNode`, `PhraseNode`, `FieldQueryNode`, `RangeNode`, `BooleanQueryNode`, `GroupNode`, etc.)
15-
- **`src/Foundatio.LuceneQueryParser/Visitors/`** - Visitor pattern for AST transformation
14+
- **`src/Foundatio.LuceneQuery/Ast/`** - AST node types (`TermNode`, `PhraseNode`, `FieldQueryNode`, `RangeNode`, `BooleanQueryNode`, `GroupNode`, etc.)
15+
- **`src/Foundatio.LuceneQuery/Visitors/`** - Visitor pattern for AST transformation
1616
- **`QueryStringBuilder`** - Converts AST back to query string (round-trip capability)
1717

1818
### Visitor Pattern (Critical for Extensions)
@@ -42,12 +42,12 @@ public class MyVisitor : QueryNodeVisitor
4242
```bash
4343
dotnet build # Build all projects
4444
dotnet test # Run all tests
45-
dotnet run -c Release --project benchmarks/Foundatio.LuceneQueryParser.Benchmarks # Run benchmarks
45+
dotnet run -c Release --project benchmarks/Foundatio.LuceneQuery.Benchmarks # Run benchmarks
4646
```
4747

4848
### Project Structure
49-
- `src/Foundatio.LuceneQueryParser/` - Core parser library (net8.0, net10.0)
50-
- `src/Foundatio.LuceneQueryParser.EntityFramework/` - EF Core integration for LINQ expression generation
49+
- `src/Foundatio.LuceneQuery/` - Core parser library (net8.0, net10.0)
50+
- `src/Foundatio.LuceneQuery.EntityFramework/` - EF Core integration for LINQ expression generation
5151
- `tests/` - xUnit test projects
5252

5353
## Patterns & Conventions

Foundatio.LuceneQuery.slnx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Solution>
2+
<Configurations>
3+
<Platform Name="Any CPU" />
4+
<Platform Name="x64" />
5+
<Platform Name="x86" />
6+
</Configurations>
7+
<Folder Name="/src/">
8+
<Project Path="src/Foundatio.LuceneQuery/Foundatio.LuceneQuery.csproj" />
9+
<Project Path="src/Foundatio.LuceneQuery.EntityFramework/Foundatio.LuceneQuery.EntityFramework.csproj" />
10+
</Folder>
11+
<Folder Name="/tests/">
12+
<Project Path="tests/Foundatio.LuceneQuery.Tests/Foundatio.LuceneQuery.Tests.csproj" />
13+
<Project Path="tests/Foundatio.LuceneQuery.EntityFramework.Tests/Foundatio.LuceneQuery.EntityFramework.Tests.csproj" />
14+
</Folder>
15+
<Folder Name="/benchmarks/">
16+
<Project Path="benchmarks/Foundatio.LuceneQuery.Benchmarks/Foundatio.LuceneQuery.Benchmarks.csproj" />
17+
</Folder>
18+
</Solution>

Foundatio.LuceneQueryParser.slnx

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Foundatio.LuceneQueryParser
1+
# Foundatio.LuceneQuery
22

33
A high-performance Lucene query string parser for .NET that converts query strings into an Abstract Syntax Tree (AST). Supports query transformation via visitors and includes Entity Framework Core integration for generating LINQ expressions.
44

@@ -15,18 +15,18 @@ A high-performance Lucene query string parser for .NET that converts query strin
1515

1616
```bash
1717
# Core parser
18-
dotnet add package Foundatio.LuceneQueryParser
18+
dotnet add package Foundatio.LuceneQuery
1919

2020
# Entity Framework integration (optional)
21-
dotnet add package Foundatio.LuceneQueryParser.EntityFramework
21+
dotnet add package Foundatio.LuceneQuery.EntityFramework
2222
```
2323

2424
## Quick Start
2525

2626
### Basic Parsing
2727

2828
```csharp
29-
using Foundatio.LuceneQueryParser;
29+
using Foundatio.LuceneQuery;
3030

3131
var result = LuceneQuery.Parse("title:hello AND status:active");
3232

@@ -45,7 +45,7 @@ else
4545
### Convert AST Back to Query String
4646

4747
```csharp
48-
using Foundatio.LuceneQueryParser;
48+
using Foundatio.LuceneQuery;
4949

5050
var result = LuceneQuery.Parse("title:test AND (status:active OR status:pending)");
5151
var queryString = QueryStringBuilder.ToQueryString(result.Document);
@@ -55,8 +55,8 @@ var queryString = QueryStringBuilder.ToQueryString(result.Document);
5555
### Field Aliasing
5656

5757
```csharp
58-
using Foundatio.LuceneQueryParser;
59-
using Foundatio.LuceneQueryParser.Visitors;
58+
using Foundatio.LuceneQuery;
59+
using Foundatio.LuceneQuery.Visitors;
6060

6161
var result = LuceneQuery.Parse("user:john AND created:[2020-01-01 TO 2020-12-31]");
6262

@@ -75,7 +75,7 @@ var resolved = QueryStringBuilder.ToQueryString(result.Document);
7575
### Query Validation
7676

7777
```csharp
78-
using Foundatio.LuceneQueryParser;
78+
using Foundatio.LuceneQuery;
7979

8080
var result = LuceneQuery.Parse("*wildcard AND title:test");
8181

@@ -95,7 +95,7 @@ if (!validationResult.IsValid)
9595
### Entity Framework Integration
9696

9797
```csharp
98-
using Foundatio.LuceneQueryParser.EntityFramework;
98+
using Foundatio.LuceneQuery.EntityFramework;
9999

100100
var parser = new EntityFrameworkQueryParser();
101101

@@ -129,8 +129,8 @@ var results = await context.Employees.Where(filter).ToListAsync();
129129
Extend `QueryNodeVisitor` to create custom transformations:
130130

131131
```csharp
132-
using Foundatio.LuceneQueryParser.Ast;
133-
using Foundatio.LuceneQueryParser.Visitors;
132+
using Foundatio.LuceneQuery.Ast;
133+
using Foundatio.LuceneQuery.Visitors;
134134

135135
public class LowercaseTermVisitor : QueryNodeVisitor
136136
{

benchmarks/Foundatio.LuceneQueryParser.Benchmarks/Benchmarks.cs renamed to benchmarks/Foundatio.LuceneQuery.Benchmarks/Benchmarks.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using BenchmarkDotNet.Attributes;
2-
using Foundatio.LuceneQueryParser.Ast;
2+
using Foundatio.LuceneQuery.Ast;
33
using Foundatio.Parsers.LuceneQueries.Visitors;
44
using OldParser = Foundatio.Parsers.LuceneQueries;
55

6-
namespace Foundatio.LuceneQueryParser.Benchmarks;
6+
namespace Foundatio.LuceneQuery.Benchmarks;
77

88
/// <summary>
99
/// Core benchmarks for the Lucene Query Parser library.
@@ -123,7 +123,7 @@ public async Task<string> RoundTrip_Complex_Old()
123123
[Benchmark]
124124
public async Task<QueryNode> Visit_Complex()
125125
{
126-
var context = new Foundatio.LuceneQueryParser.Visitors.QueryVisitorContext();
126+
var context = new Foundatio.LuceneQuery.Visitors.QueryVisitorContext();
127127
return await _visitor.AcceptAsync(_complexDoc, context);
128128
}
129129

benchmarks/Foundatio.LuceneQueryParser.Benchmarks/EntityFrameworkBenchmarks.cs renamed to benchmarks/Foundatio.LuceneQuery.Benchmarks/EntityFrameworkBenchmarks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
using BenchmarkDotNet.Configs;
44
using BenchmarkDotNet.Jobs;
55
using BenchmarkDotNet.Toolchains.InProcess.Emit;
6-
using Foundatio.LuceneQueryParser.EntityFramework;
6+
using Foundatio.LuceneQuery.EntityFramework;
77
using Microsoft.EntityFrameworkCore;
88

9-
namespace Foundatio.LuceneQueryParser.Benchmarks;
9+
namespace Foundatio.LuceneQuery.Benchmarks;
1010

1111
/// <summary>
1212
/// Benchmarks for Entity Framework query generation from Lucene queries.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<ProjectReference Include="..\..\src\Foundatio.LuceneQueryParser\Foundatio.LuceneQueryParser.csproj" />
20-
<ProjectReference Include="..\..\src\Foundatio.LuceneQueryParser.EntityFramework\Foundatio.LuceneQueryParser.EntityFramework.csproj" />
19+
<ProjectReference Include="..\..\src\Foundatio.LuceneQuery\Foundatio.LuceneQuery.csproj" />
20+
<ProjectReference Include="..\..\src\Foundatio.LuceneQuery.EntityFramework\Foundatio.LuceneQuery.EntityFramework.csproj" />
2121
</ItemGroup>
2222

2323
</Project>

build/common.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
55
<Product>Foundatio</Product>
66
<Description>Pluggable foundation blocks for building distributed apps.</Description>
7-
<PackageProjectUrl>https://github.com/FoundatioFx/Foundatio.LuceneQueryParser</PackageProjectUrl>
8-
<PackageReleaseNotes>https://github.com/FoundatioFx/Foundatio.LuceneQueryParser/releases</PackageReleaseNotes>
9-
<PackageTags>Queue;Messaging;Message;Bus;ServiceBus;Locking;Lock;Distributed;File;Storage;Blob;Jobs;Metrics;Stats;Azure;Redis;StatsD;Amazon;AWS;S3;broker;Logging;Log</PackageTags>
7+
<PackageProjectUrl>https://github.com/FoundatioFx/Foundatio.LuceneQuery</PackageProjectUrl>
8+
<PackageReleaseNotes>https://github.com/FoundatioFx/Foundatio.LuceneQuery/releases</PackageReleaseNotes>
9+
<PackageTags>Lucene;Query;Parser;AST;Entity Framework;LINQ;Search</PackageTags>
1010
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
1111
<MinVerTagPrefix>v</MinVerTagPrefix>
1212

0 commit comments

Comments
 (0)