hl.usePhraseHighlighter defaults to true but Query form and wiki suggest otherwise

2013-04-03 Thread Timothy Potter
Minor issues - It seems that the hl.usePhraseHighlighter is enabled by
default, which definitely makes sense but the wiki says it's default value
is false and the checkbox is unchecked by default on the Query form. This
gives the impression this parameter defaults to false.

I'm assuming the code is right in this case and we just need a JIRA to
bring the Query form in-sync with the code. I can update the wiki ... just
want to make sure that having this field enabled by default is the correct
behavior before I update things.

Cheers,
Tim


Re: hl.usePhraseHighlighter defaults to true but Query form and wiki suggest otherwise

2013-04-03 Thread Mark Miller
It was def intentional to make it default to true, but I believe that was 
changed at one point from initially defaulting to false - the doc was probably 
not updated and that slipped into he UI. Thanks for looking into this.

- Mark

On Apr 3, 2013, at 8:50 PM, Timothy Potter thelabd...@gmail.com wrote:

 Minor issues - It seems that the hl.usePhraseHighlighter is enabled by
 default, which definitely makes sense but the wiki says it's default value
 is false and the checkbox is unchecked by default on the Query form. This
 gives the impression this parameter defaults to false.
 
 I'm assuming the code is right in this case and we just need a JIRA to
 bring the Query form in-sync with the code. I can update the wiki ... just
 want to make sure that having this field enabled by default is the correct
 behavior before I update things.
 
 Cheers,
 Tim



Re: hl.usePhraseHighlighter

2010-08-12 Thread Chris Hostetter

: Subject: hl.usePhraseHighlighter
: References: 1281125904548-1031951.p...@n3.nabble.com
:  960560.55971...@web52904.mail.re2.yahoo.com
: In-Reply-To: 960560.55971...@web52904.mail.re2.yahoo.com

http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is hidden in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/User:DonDiego/Thread_hijacking


-Hoss



RE: hl.usePhraseHighlighter

2010-08-10 Thread Ma, Xiaohui (NIH/NLM/LHC) [C]
Thanks so much for your help! It works. I really appreciate it.

-Original Message-
From: Ahmet Arslan [mailto:iori...@yahoo.com] 
Sent: Monday, August 09, 2010 6:05 PM
To: solr-user@lucene.apache.org
Subject: RE: hl.usePhraseHighlighter

 I used text type and found the following in schema.xml. I
 don't know which ones I should remove. 
 ***

You should remove filter class=solr.EnglishPorterFilterFactory 
protected=protwords.txt/ from both index and query time.


  


hl.usePhraseHighlighter

2010-08-09 Thread Ma, Xiaohui (NIH/NLM/LHC) [C]
I am trying to do exactly match. For example, I hope only get study highlighted 
if I search study, not others (studies, studied and so on).

I didn't find any function for it from SolrQuery. I added following in 
solrconfig.xml
str name=hl.usePhraseHighlightertrue/str.

Unfortunately I didn't get it work. 

Please help me out.

Thanks so much,
Xiaohui 


Re: hl.usePhraseHighlighter

2010-08-09 Thread Ahmet Arslan

 I am trying to do exactly match. For
 example, I hope only get study highlighted if I search
 study, not others (studies, studied and so on).

This has nothing to do with highlighting and its parameters. 
You need to remove stem filter factory (porter, snowball) from your analyzer 
chain. Re-start solr and re-index is also necessary.


  


RE: hl.usePhraseHighlighter

2010-08-09 Thread Ma, Xiaohui (NIH/NLM/LHC) [C]
Thanks so much for your help!

I used text type and found the following in schema.xml. I don't know which ones 
I should remove. 
***
fieldType name=text class=solr.TextField positionIncrementGap=100
  analyzer type=index
tokenizer class=solr.WhitespaceTokenizerFactory/
!-- in this example, we will only use synonyms at query time
filter class=solr.SynonymFilterFactory synonyms=index_synonyms.txt 
ignoreCase=true expand=false/
--
filter class=solr.StopFilterFactory ignoreCase=true 
words=stopwords.txt/
filter class=solr.WordDelimiterFilterFactory generateWordParts=1 
generateNumberParts=1 catenateWords=1 catenateNumbers=1 catenateAll=0 
splitOnCaseChange=1/
filter class=solr.LowerCaseFilterFactory/
filter class=solr.EnglishPorterFilterFactory 
protected=protwords.txt/
filter class=solr.RemoveDuplicatesTokenFilterFactory/
  /analyzer
  analyzer type=query
tokenizer class=solr.WhitespaceTokenizerFactory/
filter class=solr.SynonymFilterFactory synonyms=synonyms.txt 
ignoreCase=true expand=true/
filter class=solr.StopFilterFactory ignoreCase=true 
words=stopwords.txt/
filter class=solr.WordDelimiterFilterFactory generateWordParts=1 
generateNumberParts=1 catenateWords=0 catenateNumbers=0 catenateAll=0 
splitOnCaseChange=1/
filter class=solr.LowerCaseFilterFactory/
filter class=solr.EnglishPorterFilterFactory 
protected=protwords.txt/
filter class=solr.RemoveDuplicatesTokenFilterFactory/
  /analyzer
/fieldType
***

-Original Message-
From: Ahmet Arslan [mailto:iori...@yahoo.com] 
Sent: Monday, August 09, 2010 4:32 PM
To: solr-user@lucene.apache.org
Subject: Re: hl.usePhraseHighlighter


 I am trying to do exactly match. For
 example, I hope only get study highlighted if I search
 study, not others (studies, studied and so on).

This has nothing to do with highlighting and its parameters. 
You need to remove stem filter factory (porter, snowball) from your analyzer 
chain. Re-start solr and re-index is also necessary.


  


RE: hl.usePhraseHighlighter

2010-08-09 Thread Ahmet Arslan
 I used text type and found the following in schema.xml. I
 don't know which ones I should remove. 
 ***

You should remove filter class=solr.EnglishPorterFilterFactory 
protected=protwords.txt/ from both index and query time.


  


Solrj + hl.usePhraseHighlighter

2009-01-15 Thread Sachit

Hi all,

SolrQuery provides all methods related to highlighting with Solrj client
such as setHighlight(), setHighlightFragSize(), etc.
But I didn’t find any way to set the hl.usePhraseHighlighter  = true to the
query. However, I can set the same in my solrconfig.xml but my aim is to
this attribute to “true” in case of “exact match” search.

One more question which I needed to rise is about “highlighting the
wildcard”.
I went through the mailing list and found out that we can do this by
prefixing the “*” with a “?” but it is not working for me.
In fact the wild card “?” instead of “*” itself does not give me any result.

My relevant schema.xml:

fieldType name=wild_card class=solr.TextField
positionIncrementGap=100
  analyzer type=index
tokenizer class=solr.WhitespaceTokenizerFactory/
filter class=solr.LowerCaseFilterFactory/
  /analyzer
  analyzer type=query
tokenizer class=solr.WhitespaceTokenizerFactory/
filter class=solr.LowerCaseFilterFactory/
  /analyzer
/fieldType

field name=wildcard type=wild_card indexed=true stored=false
multiValued=true omitNorms=true/
field name=highlightFields type=text indexed=true stored=true
multiValued=true/

defaultSearchFieldall/defaultSearchField

Note: I have other fields too but specifying only relevant. I am
copyfielding every field but not wildcard and highlightFields. While
creating query, I'm doing - query.setQuery(wildcard:  + searchTerm);. Also 
I'm using the default requestHandler(standard)



My relevant solrconfig.xml

 requestHandler name=standard class=solr.StandardRequestHandler
default=true
  lst name=defaults
   str name=echoParamsexplicit/str
   int name=rows10/int
   str name=fl*/str
   str name=version2.1/str
   str name=hl.flhighlightFields/str
   str name=f.highlightFields.hl.fragsize300/str
/lst
  /requestHandler


Please let me know where I'm going wrong. 

Thanks 
Sachit

-- 
View this message in context: 
http://www.nabble.com/Solrj-%2B-hl.usePhraseHighlighter-tp21492830p21492830.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Solrj + hl.usePhraseHighlighter

2009-01-15 Thread Sachit

Sorry I forgot to detail out the field type wild_card definition.

   fieldType name=wild_card class=solr.TextField
positionIncrementGap=100
  analyzer type=index
tokenizer class=solr.WhitespaceTokenizerFactory/
filter class=solr.LowerCaseFilterFactory/
  /analyzer
  analyzer type=query
tokenizer class=solr.WhitespaceTokenizerFactory/
filter class=solr.LowerCaseFilterFactory/
  /analyzer
/fieldType

-- 
View this message in context: 
http://www.nabble.com/Solrj-%2B-hl.usePhraseHighlighter-tp21492830p21492981.html
Sent from the Solr - User mailing list archive at Nabble.com.