here is the thing, you are probably using the StandardAnalyzer so those
special characters are going to be removed at indexing time
If you don't want that to happen, if you don't want that to happen you can
try with KeywordAnalyzer or just create your own Analyzer
You can test with the following
This 'ant idea' command works for lucene-solr code base
https://github.com/apache/lucene-solr
I was trying out specifically on lucene source code downloaded from apache
lucene website.
On Mon, Sep 5, 2016 at 8:19 PM, Erick Erickson
wrote:
> You have to execute the 'ant' target one level up fr
Do you suggest me to pass matching string by encoding.
Ex:
.onField("body").ignoreFieldBridge().ignoreAnalyzer().matching(URLEncoder.encode("#chaitu"))
On Tue, Sep 6, 2016 at 7:58 PM, Iker Huerga wrote:
> # and @ are Reserved Characters as per RFC 3986
> https://tools.ietf.org/html/rfc3986 see s
# and @ are Reserved Characters as per RFC 3986
https://tools.ietf.org/html/rfc3986 see section 2.2 so you would have to
URL encode them
My 2 cents
2016-09-06 10:20 GMT-04:00 Chaitanya Kumar Ch :
> Thanks for the reply.
> I have tried that but didn't work.
> Also please note that *@,# are not pa
Thanks for all you hard work on this! Out of curiosity, was the query
deemed unnecessary? I was trying to scanning through the commit & code and
missed it. I only noticed the comment on Jira about the custom similarity
not being needed.
https://github.com/apache/lucene-solr/commit/96a5595fffd4a4a1
Thanks for the reply.
I have tried that but didn't work.
Also please note that *@,# are not part of current special characters list*.
On Tue, Sep 6, 2016 at 7:47 PM, Iker Huerga wrote:
> I'd try scaping the characters as in
> https://lucene.apache.org/core/2_9_4/queryparsersyntax.
> html#Escapin
I'd try scaping the characters as in
https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Escaping%20Special%20Characters
2016-09-06 10:02 GMT-04:00 Chaitanya Kumar Ch :
> Hi All!
>
> I am facing issue while trying to match a fields content with some keywords
> which contains symbols like
Hi All!
I am facing issue while trying to match a fields content with some keywords
which contains symbols like @,#
I have annotated field "body" which is configured as below :
@Field(analyze = Analyze.YES)private String body;
only of the body column content as follows:
Thursday PM Clicks: Jes
Hi All,
How can I list all the terms from a document? I also need the counts of each
term per document.
I use Lucene 6.2. I found some solutions for older versions. These din't
work with 6.2
Thank you in advance.
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-can-I-l
Hi All,
Is it possible to use a sentence as a term? Can I search for sentences in
the index? How can I do it if possible?
I use Lucene 6.2.
Thank you in advance.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Is-it-possible-to-use-a-sentence-as-a-term-tp4294795.html
Sent
10 matches
Mail list logo