Re: Highlighting stopwords

2012-02-15 Thread O. Klein
Koji Sekiguchi wrote > > (12/02/14 22:25), O. Klein wrote: >> I have not been able to find any logic in the behavior of hl.q and how it >> analyses the query. Could you explain how it is supposed to work? > > Nothing special on hl.q. If you use hl.q, the value of it will be used for > highlighti

Re: Highlighting stopwords

2012-02-14 Thread O. Klein
Koji Sekiguchi wrote > > Uh, what you tried was that you changed the field between q and hl.q, > that I've not expected use case when I proposed hl.q. > > Do you think that hl.text meats your needs? > > https://issues.apache.org/jira/browse/SOLR-1926?focusedCommentId=12871234&page=com.atlassian

Re: Highlighting stopwords

2012-02-14 Thread Koji Sekiguchi
(12/02/14 22:25), O. Klein wrote: I have not been able to find any logic in the behavior of hl.q and how it analyses the query. Could you explain how it is supposed to work? Nothing special on hl.q. If you use hl.q, the value of it will be used for highlighting rather than the value of q. There

Re: Highlighting stopwords

2012-02-14 Thread O. Klein
O. Klein wrote > > > O. Klein wrote >> >> Hmm, now the synonyms aren't highlighted anymore. >> >> OK back to basic (im using trunk and FVH). >> >> What is the way to go about if I want to search on a field without >> stopwords, but still want to highlight the stopwords? (and still >> highligh

Re: Highlighting stopwords

2012-02-14 Thread O. Klein
O. Klein wrote > > Hmm, now the synonyms aren't highlighted anymore. > > OK back to basic (im using trunk and FVH). > > What is the way to go about if I want to search on a field without > stopwords, but still want to highlight the stopwords? (and still highlight > synonyms and stemmed words)?

Re: Highlighting stopwords

2012-02-13 Thread O. Klein
Hmm, now the synonyms aren't highlighted anymore. OK back to basic (im using trunk and FVH). What is the way to go about if I want to search on a field without stopwords, but still want to highlight the stopwords? (and still highlight synonyms and stemmed words)? -- View this message in contex

Re: Highlighting stopwords

2012-02-13 Thread Koji Sekiguchi
I got it fixed now I think. I thought that if you used it like "hl.q=spell Checker" it would use the query analysis of the field that was being highlighted as default. But in my case it needs to be "hl.q=content_hl:(spell Checker)" for it to work. The behavour I got default made no sense whatsoev

Re: Highlighting stopwords

2012-02-13 Thread O. Klein
Koji Sekiguchi wrote > > (12/02/11 21:19), O. Klein wrote: >> >> Koji Sekiguchi wrote >>> >>> (12/01/24 9:31), O. Klein wrote: Let's say I search for "spellcheck solr" on a website that only contains info about Solr, so "solr" was added to the stopwords.txt. The query that >>>

Re: Highlighting stopwords

2012-02-11 Thread Koji Sekiguchi
(12/02/11 21:19), O. Klein wrote: Koji Sekiguchi wrote (12/01/24 9:31), O. Klein wrote: Let's say I search for "spellcheck solr" on a website that only contains info about Solr, so "solr" was added to the stopwords.txt. The query that will be parsed then (dismax) will not contain the term "so

Re: Highlighting stopwords

2012-02-11 Thread O. Klein
Koji Sekiguchi wrote > > (12/01/24 9:31), O. Klein wrote: >> Let's say I search for "spellcheck solr" on a website that only contains >> info about Solr, so "solr" was added to the stopwords.txt. The query that >> will be parsed then (dismax) will not contain the term "solr". >> >> So fragments w

Re: Highlighting stopwords

2012-01-24 Thread O. Klein
Ah, I never used the hl.q That did the trick. Thanx! -- View this message in context: http://lucene.472066.n3.nabble.com/Highlighting-stopwords-tp3681901p3684245.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Highlighting stopwords

2012-01-24 Thread Koji Sekiguchi
(12/01/24 9:31), O. Klein wrote: Let's say I search for "spellcheck solr" on a website that only contains info about Solr, so "solr" was added to the stopwords.txt. The query that will be parsed then (dismax) will not contain the term "solr". So fragments won't contain highlights of the term "so

Re: Highlighting stopwords

2012-01-23 Thread O. Klein
Koji Sekiguchi wrote > > (12/01/23 23:14), O. Klein wrote: >> Im using trunk and FVH and eventhough I filter stopwords when searching, >> I >> would like to highlight stopwords in fragments. Using a different field >> without the stopwords filter did not have the desired effect. > > Please provi

Re: Highlighting stopwords

2012-01-23 Thread Koji Sekiguchi
(12/01/23 23:14), O. Klein wrote: Im using trunk and FVH and eventhough I filter stopwords when searching, I would like to highlight stopwords in fragments. Using a different field without the stopwords filter did not have the desired effect. Please provide more info. In particular, how your qu