Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added case for match with field with position limits #2969

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/test_068/data3.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1, a b
2 changes: 1 addition & 1 deletion test/test_068/model.bin

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions test/test_068/test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,20 @@ index year
killlist_target = archive, ancient
}

source src_csv3
{
type = csvpipe
csvpipe_command = cat <this_test/>/data3.csv
csvpipe_field = f
}

index csv3
{
source = src_csv3
path = <data_path/>/csv3
}


</config>

<queries>
Expand Down Expand Up @@ -278,6 +292,10 @@ index year
<sphinxql>select * from ancient</sphinxql>
<sphinxql>select * from `year`</sphinxql>

<!-- field with position limits -->
<sphinxql>select * from csv3 where match ('@f[1] b') </sphinxql>
<sphinxql>select * from csv3 where match ('@f[2] b') </sphinxql>

</queries>

</test>
Loading