|
|
@ -123,13 +123,13 @@ public class QueryFactoryTestCase { |
|
|
|
|
|
|
|
|
|
|
|
Query query = queryFactory.search(criteria, SINGLE_FOLDERS, IndexType.ALBUM); |
|
|
|
Query query = queryFactory.search(criteria, SINGLE_FOLDERS, IndexType.ALBUM); |
|
|
|
assertEquals("SearchAlbum", |
|
|
|
assertEquals("SearchAlbum", |
|
|
|
"+((album:abc* artist:abc*) (album:def* artist:def*)) +(folder:" + PATH1 |
|
|
|
"+(((album:abc*)^1.1 artist:abc*) ((album:def*)^1.1 artist:def*)) +(folder:" + PATH1 |
|
|
|
+ ")", |
|
|
|
+ ")", |
|
|
|
query.toString()); |
|
|
|
query.toString()); |
|
|
|
|
|
|
|
|
|
|
|
query = queryFactory.search(criteria, MULTI_FOLDERS, IndexType.ALBUM); |
|
|
|
query = queryFactory.search(criteria, MULTI_FOLDERS, IndexType.ALBUM); |
|
|
|
assertEquals("SearchAlbum", |
|
|
|
assertEquals("SearchAlbum", |
|
|
|
"+((album:abc* artist:abc*) (album:def* artist:def*)) +(folder:" + PATH1 |
|
|
|
"+(((album:abc*)^1.1 artist:abc*) ((album:def*)^1.1 artist:def*)) +(folder:" + PATH1 |
|
|
|
+ " folder:" + PATH2 + ")", |
|
|
|
+ " folder:" + PATH2 + ")", |
|
|
|
query.toString()); |
|
|
|
query.toString()); |
|
|
|
} |
|
|
|
} |
|
|
@ -143,11 +143,11 @@ public class QueryFactoryTestCase { |
|
|
|
|
|
|
|
|
|
|
|
Query query = queryFactory.search(criteria, SINGLE_FOLDERS, IndexType.SONG); |
|
|
|
Query query = queryFactory.search(criteria, SINGLE_FOLDERS, IndexType.SONG); |
|
|
|
assertEquals("SearchSong", |
|
|
|
assertEquals("SearchSong", |
|
|
|
"+((title:abc* artist:abc*) (title:def* artist:def*)) +(folder:" + PATH1 + ")", |
|
|
|
"+(((title:abc*)^1.1 artist:abc*) ((title:def*)^1.1 artist:def*)) +(folder:" + PATH1 + ")", |
|
|
|
query.toString()); |
|
|
|
query.toString()); |
|
|
|
|
|
|
|
|
|
|
|
query = queryFactory.search(criteria, MULTI_FOLDERS, IndexType.SONG); |
|
|
|
query = queryFactory.search(criteria, MULTI_FOLDERS, IndexType.SONG); |
|
|
|
assertEquals("SearchSong", "+((title:abc* artist:abc*) (title:def* artist:def*)) +(folder:" + PATH1 |
|
|
|
assertEquals("SearchSong", "+(((title:abc*)^1.1 artist:abc*) ((title:def*)^1.1 artist:def*)) +(folder:" + PATH1 |
|
|
|
+ " folder:" + PATH2 + ")", query.toString()); |
|
|
|
+ " folder:" + PATH2 + ")", query.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -178,13 +178,13 @@ public class QueryFactoryTestCase { |
|
|
|
|
|
|
|
|
|
|
|
Query query = queryFactory.search(criteria, SINGLE_FOLDERS, IndexType.ALBUM_ID3); |
|
|
|
Query query = queryFactory.search(criteria, SINGLE_FOLDERS, IndexType.ALBUM_ID3); |
|
|
|
assertEquals( |
|
|
|
assertEquals( |
|
|
|
"SearchAlbumId3", "+((album:abc* artist:abc*) (album:def* artist:def*)) " |
|
|
|
"SearchAlbumId3", "+(((album:abc*)^1.1 artist:abc*) ((album:def*)^1.1 artist:def*)) " |
|
|
|
+ "+(folderId:" + FID1 + ")", |
|
|
|
+ "+(folderId:" + FID1 + ")", |
|
|
|
query.toString()); |
|
|
|
query.toString()); |
|
|
|
|
|
|
|
|
|
|
|
query = queryFactory.search(criteria, MULTI_FOLDERS, IndexType.ALBUM_ID3); |
|
|
|
query = queryFactory.search(criteria, MULTI_FOLDERS, IndexType.ALBUM_ID3); |
|
|
|
assertEquals("SearchAlbumId3", |
|
|
|
assertEquals("SearchAlbumId3", |
|
|
|
"+((album:abc* artist:abc*) (album:def* artist:def*)) +(folderId:" |
|
|
|
"+(((album:abc*)^1.1 artist:abc*) ((album:def*)^1.1 artist:def*)) +(folderId:" |
|
|
|
+ FID1 + " folderId:" |
|
|
|
+ FID1 + " folderId:" |
|
|
|
+ FID2 + ")", |
|
|
|
+ FID2 + ")", |
|
|
|
query.toString()); |
|
|
|
query.toString()); |
|
|
|