Mohsens22 opened a new issue, #1165:
URL: https://github.com/apache/lucenenet/issues/1165

   ### Is there an existing issue for this?
   
   - [x] I have searched the existing issues
   
   ### Describe the bug
   
   When parsing a query like `url_exact:\/api` using `parser.Parse` it yields 
`url_exact:api` and ignores the forward slash
   
   ### Expected Behavior
   
   It should keep the slash as it is a part of the search term
   
   ### Steps To Reproduce
   
   ``` cs
   var analyzer = new StandardAnalyzer(LuceneVersion.LUCENE_48);
   var parser = new QueryParser(LuceneVersion.LUCENE_48, "url_exact", analyzer);
   var query = parser.Parse(@"url_exact:\/api"); // url_exact:api
   var query2 = parser.Parse(@"url_exact:\/api\/v2"); // url_exact:api  
url_exact:v2
   ```
   
   ### Exceptions (if any)
   
   _No response_
   
   ### Lucene.NET Version
   
   4.8.0-beta00017
   
   ### .NET Version
   
   8.0
   
   ### Operating System
   
   windows11_x64
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to