You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Charles Chang (JIRA)" <ji...@apache.org> on 2008/12/10 10:48:47 UTC
[jira] Created: (LUCENENET-165) How to Search where the data's
value is "OR"
How to Search where the data's value is "OR"
---------------------------------------------
Key: LUCENENET-165
URL: https://issues.apache.org/jira/browse/LUCENENET-165
Project: Lucene.Net
Issue Type: Wish
Environment: Lucene.NET 2.3.1.2
Reporter: Charles Chang
I have some data that value is "OR",
I want to know how to query it?
I have try as follows,
data:OR -->org.apache.lucene.queryParser.ParseException: Cannot parse 'OR': Encountered "OR" at line 1, column 0.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ...
data:"OR" --> It can get nothing.
How to Search where the data's value is "OR"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (LUCENENET-165) How to Search where the data's value is "OR"
Posted by Jokin Cuadrado <jo...@gmail.com>.
"Or" is used by the queryparser, so if you wan't to query for that
term you can build your own query programatically using termquery and
booleanquery for example.
You can also modify or extend the queryparser to not take the "Or" in account.
This however is by design, so it mustn't be a jira issue for this.
--
Jokin
On Wed, Dec 10, 2008 at 10:48 AM, Charles Chang (JIRA) <ji...@apache.org> wrote:
> How to Search where the data's value is "OR"
> ---------------------------------------------
>
> Key: LUCENENET-165
> URL: https://issues.apache.org/jira/browse/LUCENENET-165
> Project: Lucene.Net
> Issue Type: Wish
> Environment: Lucene.NET 2.3.1.2
> Reporter: Charles Chang
>
>
> I have some data that value is "OR",
> I want to know how to query it?
> I have try as follows,
> data:OR -->org.apache.lucene.queryParser.ParseException: Cannot parse 'OR': Encountered "OR" at line 1, column 0.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ...
>
> data:"OR" --> It can get nothing.
>
>
> How to Search where the data's value is "OR"
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Closed: (LUCENENET-165) How to Search when the data's value
is "OR"
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Digy closed LUCENENET-165.
--------------------------
Resolution: Invalid
> How to Search when the data's value is "OR"
> --------------------------------------------
>
> Key: LUCENENET-165
> URL: https://issues.apache.org/jira/browse/LUCENENET-165
> Project: Lucene.Net
> Issue Type: Wish
> Environment: Lucene.NET 2.3.1.2
> Reporter: Charles Chang
>
> I have some data that value is "OR",
> I want to know how to query it?
> I have try as follows,
> data:OR -->org.apache.lucene.queryParser.ParseException: Cannot parse 'OR': Encountered "OR" at line 1, column 0.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ...
> data:"OR" --> It can get nothing.
> How to Search when the data's value is "OR"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LUCENENET-165) How to Search when the data's
value is "OR"
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655172#action_12655172 ]
Digy commented on LUCENENET-165:
--------------------------------
AND/OR/NOT are considered as operator, only when they are in upper-case. So, you can try to lower-case your query.(assuming "or" is not in stop-word list while indexing)
Please use mailing-lists to ask for help, not issue/bug tracking systems.
DIGY
> How to Search when the data's value is "OR"
> --------------------------------------------
>
> Key: LUCENENET-165
> URL: https://issues.apache.org/jira/browse/LUCENENET-165
> Project: Lucene.Net
> Issue Type: Wish
> Environment: Lucene.NET 2.3.1.2
> Reporter: Charles Chang
>
> I have some data that value is "OR",
> I want to know how to query it?
> I have try as follows,
> data:OR -->org.apache.lucene.queryParser.ParseException: Cannot parse 'OR': Encountered "OR" at line 1, column 0.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ...
> data:"OR" --> It can get nothing.
> How to Search when the data's value is "OR"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (LUCENENET-165) How to Search when the data's value
is "OR"
Posted by "Charles Chang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charles Chang updated LUCENENET-165:
------------------------------------
Description:
I have some data that value is "OR",
I want to know how to query it?
I have try as follows,
data:OR -->org.apache.lucene.queryParser.ParseException: Cannot parse 'OR': Encountered "OR" at line 1, column 0.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ...
data:"OR" --> It can get nothing.
How to Search when the data's value is "OR"
was:
I have some data that value is "OR",
I want to know how to query it?
I have try as follows,
data:OR -->org.apache.lucene.queryParser.ParseException: Cannot parse 'OR': Encountered "OR" at line 1, column 0.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ...
data:"OR" --> It can get nothing.
How to Search where the data's value is "OR"
Summary: How to Search when the data's value is "OR" (was: How to Search where the data's value is "OR" )
> How to Search when the data's value is "OR"
> --------------------------------------------
>
> Key: LUCENENET-165
> URL: https://issues.apache.org/jira/browse/LUCENENET-165
> Project: Lucene.Net
> Issue Type: Wish
> Environment: Lucene.NET 2.3.1.2
> Reporter: Charles Chang
>
> I have some data that value is "OR",
> I want to know how to query it?
> I have try as follows,
> data:OR -->org.apache.lucene.queryParser.ParseException: Cannot parse 'OR': Encountered "OR" at line 1, column 0.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ...
> data:"OR" --> It can get nothing.
> How to Search when the data's value is "OR"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LUCENENET-165) How to Search when the data's
value is "OR"
Posted by "Jokin Cuadrado (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655163#action_12655163 ]
Jokin Cuadrado commented on LUCENENET-165:
------------------------------------------
"Or" is used by the queryparser, so if you wan't to query for that
term you can build your own query programatically using termquery and
booleanquery for example.
You can also modify or extend the queryparser to not take the "Or" in account.
This however is by design, so it mustn't be a jira issue for this.
> How to Search when the data's value is "OR"
> --------------------------------------------
>
> Key: LUCENENET-165
> URL: https://issues.apache.org/jira/browse/LUCENENET-165
> Project: Lucene.Net
> Issue Type: Wish
> Environment: Lucene.NET 2.3.1.2
> Reporter: Charles Chang
>
> I have some data that value is "OR",
> I want to know how to query it?
> I have try as follows,
> data:OR -->org.apache.lucene.queryParser.ParseException: Cannot parse 'OR': Encountered "OR" at line 1, column 0.Was expecting one of: <NOT> ... "+" ... "-" ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ...
> data:"OR" --> It can get nothing.
> How to Search when the data's value is "OR"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.