Skip to content

Commit 9b5e007

Browse files
Ihar YakimushIhar Yakimush
authored andcommitted
update readme
1 parent 19e3308 commit 9b5e007

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ To get result you can
4141
```
4242
Product[] result = solrLinq.Where(p => p.Popularity.HasValue).Take(10).ToArray();
4343
```
44-
## Supported methods
45-
### Standard LINQ methods
46-
- Top, Skip
47-
- OrderBy, OrderByDescending, ThenBy, ThenByDescending
44+
## Supported methods
45+
46+
### Top, Skip
47+
### OrderBy, OrderByDescending, ThenBy, ThenByDescending
4848
Order by field
4949
```
5050
Product[] result = solrLinq.OrderBy(p => p.Price).ThenBy(p => p.Id).ToArray();
@@ -53,33 +53,33 @@ To get result you can
5353
```
5454
Product[] result = solrLinq.OrderBy(p => Math.Pow(p.Price,3) + 1).ToArray();
5555
```
56-
- Where
57-
Simple comparison
56+
### Where
57+
- Simple comparison
5858
```
5959
// result fq
6060
// price:{12 TO *}
6161
Product[] result = solrLinq.Where(p => p.Price > 12).ToArray();
6262
```
63-
Not equal
63+
- Not equal
6464
```
6565
// result fq
6666
// (*:* NOT id:(qwe))
6767
Product[] result = solrLinq.Where(p => p.Id != "qwe").ToArray();
6868
```
69-
Conditional expressions
69+
- Conditional expressions
7070
```
7171
// result fq
7272
// (popularity:{7 TO *} OR ((*:* NOT popularity:[* TO *]) AND price:{7 TO *}))
7373
Product[] result = solrLinq.Where(p => (p.Popularity != null ? p.Popularity.Value : p.Price) > 7).ToArray();
7474
```
75-
Contains() method
75+
- Contains() method
7676
```
7777
// result fq
7878
// (price:((1) OR (2) OR (3)))
7979
List<decimal> list = new List<decimal> {1, 2, 3};
8080
Product[] result = solrLinq.Where(p => list.Contains(p.Price)).ToArray();
8181
```
82-
Any() method
82+
- Any() method
8383
```
8484
// result fq
8585
// cat:(qwe)

0 commit comments

Comments
 (0)