Bug? Does the comma no longer work as OR in search?
In L9 I could have a list of terms (love, faith, hope) where the comma would operate as OR. Since upgrading to L10 I get errors saying that I have a missing closing parenthesis. Typing (love OR faith OR hope) returns results.
Comments
-
The comma operator is no longer supported. If you want a list of values that will be treated as a single term (this affects the highlighting color that is used), then you would create that like this: term:(love OR faith OR hope)
Andrew Batishko | Logos software developer
0 -
Gotta use OR
0 -
As Andrew said, the comma is not supported in L10 syntax.
The main reason for that is that some users typed commas in their searches because they thought commas were in the text they were trying to find. In L10, we're stricter about search syntax. That strictness allows us to give you helpful error messages and suggestions and stops you from getting weird search results when the parser has misinterpreted your query.
The downside is that unlike in L9, it would be difficult to have a comma that sometimes means 'OR' and sometimes is ignored.
There were two things that users liked about commas.
First, it was quicker than typing OR. There isn't a workaround for this, although hopefully that will add very little time to entering your queries.
Second, some people liked the fact that Jesus, Christ counted the two words only once, and highlighted them in only one color, whereas Jesus OR Christ counted verses that contained both words twice, and highlighted them in different colors.
To help you with that second problem, you can use term: as Andrew suggested. term:(Jesus OR Christ) will ensure that verses with both those words will only get counted once, and both words will get highlighted in the same color.
0 -
As Andrew said, the comma is not supported in L10 syntax.
Thankfully, it is in the Library panel. Please don't break it....
“The trouble is that everyone talks about reforming others and no one thinks about reforming himself.” St. Peter of Alcántara
0