Re: Solr Highlighting not working

2020-11-30 Thread Ajay Sharma
Hi All, pushing the query to the top. Does anyone have any idea about it? On Fri, Nov 27, 2020 at 11:49 AM Ajay Sharma wrote: > Hi Community, > > This is the first time, I am implementing a solr *highlighting *feature. > I have read the concept via solr documentation > Link- https://lucene.apa

Re: solr highlighting query

2014-10-27 Thread john eipe
Thanks David. So I guess I will have to go with default highlighter (with a higher fragsize) and then take care of boundryScanning myself.

Re: solr highlighting query

2014-10-27 Thread david.w.smi...@gmail.com
Ah. Currently the most accurate highlighter is the default one, so if accuracy is more important than BreakIterator then you’ll have to switch back. Keep an eye out for some efficiency enhancements to this highlighter “real soon now”. Separately from that efficiency, later this year I may have a

Re: solr highlighting query

2014-10-27 Thread john eipe
Yes. It seems to work for Default Highlighting. I'm using Fast Vector Highlighter. Let me also explain why I went for Fast Vector Highlighter. I wanted the highlighted content to be complete and not broken words and for that I need to use breakIterator which works only for Fast vector highlightin

Re: solr highlighting query

2014-10-27 Thread david.w.smi...@gmail.com
John, I’m not seeing this problem. Presumably we’re talking about the default highlighter (the most accurate one) but I figure the others would match it too. To test, I added the following to HighlightTest.java in Solr and this test passed: @Test public void testSpan() { final String fie

Re: solr highlighting query

2014-10-27 Thread Erick Erickson
Well, maybe you can work with the ComplexPhraseQueryParser, that's been around for a while, see: http://lucene.apache.org/core/4_10_1/queryparser/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.html Or you can just live with the inherent slop in the ~ operator. You haven't rea

Re: solr highlighting query

2014-10-27 Thread john eipe
I have this line highlighted Jobs was born in San Francisco, California on February 24 1955. for query "Jobs born"~15 but not for "born Jobs"~15. I want the same result irrespective of the order of search keywords. Regards, John Eipe “The Roots of Violence: Wealth without work, Pleasure withou

Re: solr highlighting query

2014-10-25 Thread Erick Erickson
Well, the syntax is wrong. You probably want content_raw:"jobs born"~15. The way slop works, it is the number of "moves" so this will match "jobs was a man born somewhere" and "all persons born include jobs". The difference is that the version that has "born" first and "jobs" second will take an ex

RE: Solr Highlighting Best Practices Guideline

2013-10-29 Thread Erwin Gunadi
Hi Jack, thank you for the hint. Best Regards Erwin -Original Message- From: Jack Krupansky [mailto:j...@basetechnology.com] Sent: Tuesday, October 29, 2013 4:14 PM To: solr-user@lucene.apache.org Subject: Re: Solr Highlighting Best Practices Guideline There are some detailed examples

Re: Solr Highlighting Best Practices Guideline

2013-10-29 Thread Jack Krupansky
There are some detailed examples in my e-book as well. -- Jack Krupansky -Original Message- From: Erwin Gunadi Sent: Tuesday, October 29, 2013 8:21 AM To: solr-user@lucene.apache.org Subject: RE: Solr Highlighting Best Practices Guideline Hi Furkan, thanks for the reply. I was

RE: Solr Highlighting Best Practices Guideline

2013-10-29 Thread Erwin Gunadi
Message- From: Furkan KAMACI [mailto:furkankam...@gmail.com] Sent: Tuesday, October 29, 2013 12:56 PM To: solr-user@lucene.apache.org Subject: Re: Solr Highlighting Best Practices Guideline This is a too broad question. If you have specific questions or want to see other users' problems

Re: Solr Highlighting Best Practices Guideline

2013-10-29 Thread Furkan KAMACI
This is a too broad question. If you have specific questions or want to see other users' problems about highlighting feature at Solr you can check here: http://search-lucene.com/?q=highlighting&fc_project=Solr&fc_type=mail+_hash_+user On the other hand you can read Using Additional Solr Functionali

RE: Solr highlighting fragment issue

2013-09-04 Thread Bryan Loofbourrow
>> I’m having some issues with Solr search results (using Solr 1.4 ) . I have enabled highlighting of searched text (hl=true) and set the fragment size as 500 (hl.fragsize=500) in the search query. Below is the (screen shot) results shown when I searched for the term ‘grandfather’ (2 results are

Re: Solr: Highlighting word parts in excerpt does not work

2012-04-05 Thread Koji Sekiguchi
(12/04/05 15:34), Thomas Werthmüller wrote: Hi I configured solr that also word parts are found. When is search "Monday" or "Mond" the right document is found. This is done with the following configuration in the schema.xml:. Now, when I add hl=true to the query sting, the excerpt for "Monday"

Re: Solr Highlighting not working with PayloadTermQueries

2012-02-22 Thread Koji Sekiguchi
(12/02/22 7:53), Nitin Arora wrote: Hi, I'm using SOLR and Lucene in my application for search. I'm facing an issue of highlighting using FastVectorHighlighter not working when I use PayloadTermQueries as clauses of a BooleanQuery. After Debugging I found that In DefaultSolrHighlighter.Java, f

Re: Solr highlighting isn't work!

2011-11-22 Thread VladislavLysov
Thank you for request! I'm did next request and all is ok https://localhost:8443/solr/alfresco/select?wt=standard&q=TYPE:%22{http://www.test.com/test/test/model/content/0.1}field%22&indent=on&hl=true&hl.fl=TYPE https://localhost:8443/solr/alfresco/select?wt=standard&q=TYPE:%22{http://www.test.com/

Re: Solr highlighting isn't work!

2011-11-22 Thread Koji Sekiguchi
(11/11/22 22:30), VladislavLysov wrote: Hello!!! I have a trouble with Solr highlighting. I have any document with next fields- "TYPE", "DBID" and others. When i do next request - https://localhost:8443/solr/myCore/afts?wt=standard&q=TYPE: https://localhost:8443/solr/myCore/afts?wt=standard&q=

Re: Solr Highlighting and fqs

2011-06-17 Thread Jamie Johnson
This is really not what I'm looking for. While I could see it accomplishing the job I'd prefer that the highlighting component take into account the fqs when doing highlighting. Again I can get around this by simply joining all the fqs with an AND and making them the query but this is limiting si

Re: Solr Highlighting and fqs

2011-06-17 Thread Jan Høydahl
Hi, Vote for this feature https://issues.apache.org/jira/browse/SOLR-1926 -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com On 17. juni 2011, at 21.48, Jamie Johnson wrote: > I've read in several places that the Solr Highlighting com

Re: Solr highlighting is botching output

2011-01-10 Thread Dan Loewenherz
s. > > Searching histo will return : African American History > > --- On Tue, 1/11/11, Dan Loewenherz wrote: > > > From: Dan Loewenherz > > Subject: Re: Solr highlighting is botching output > > To: solr-user@lucene.apache.org > > Date: Tuesday, Januar

Re: Solr highlighting is botching output

2011-01-10 Thread Ahmet Arslan
Replacing with EdgeNGramTokenizerFactory with combination should solve your problem. Preserving your search within words. Searching histo will return : African American History --- On Tue, 1/11/11, Dan Loewenherz wrote: > From: Dan Loewenherz > Subject: Re: Solr highlighting is bo

Re: Solr highlighting is botching output

2011-01-10 Thread Dan Loewenherz
On Mon, Jan 10, 2011 at 9:19 PM, Ahmet Arslan wrote: > > Not sure about your solr version but probably it can be > https://issues.apache.org/jira/browse/LUCENE-2266 > > Is there a special reason for using EdgeNGramTokenizerFactory? > Replacing this tokenizer with WhiteSpaceTokenizer should solve

Re: Solr highlighting is botching output

2011-01-10 Thread Ahmet Arslan
Not sure about your solr version but probably it can be https://issues.apache.org/jira/browse/LUCENE-2266 Is there a special reason for using EdgeNGramTokenizerFactory? Replacing this tokenizer with WhiteSpaceTokenizer should solve this. Or upgrade solr version. And I don't see either in your

Re: Solr highlighting is botching output

2011-01-10 Thread Dan Loewenherz
On Mon, Jan 10, 2011 at 6:51 PM, Ahmet Arslan wrote: > > Thats really strange. Can you provide us field type > > definition of text field. And full search URL that caused > > that output. And the solr version. > > > > Also, did you enable term vectors on text field? > > Not sure what those are, s

Re: Solr highlighting is botching output

2011-01-10 Thread Dan Loewenherz
On Mon, Jan 10, 2011 at 6:48 PM, Ahmet Arslan wrote: > Thats really strange. Can you provide us field type definition of text > field. And full search URL that caused that output. And the solr version. > Sure. Full search URL: /solr/select?indent=on &version=2.2&q=history&fq=&start=0&rows=10&fl

Re: Solr highlighting is botching output

2011-01-10 Thread Ahmet Arslan
> Thats really strange. Can you provide us field type > definition of text field. And full search URL that caused > that output. And the solr version. > Also, did you enable term vectors on text field?

Re: Solr highlighting is botching output

2011-01-10 Thread Ahmet Arslan
> I'm implementing Solr for a course and book search service > for college > students, and I'm running into some issues with the > highlighting plugin. > After a few minutes of tinkering, searching on Google, > searching the group > archives and not finding anything, I thought I would see if > anyo

Re: Solr Highlighting Question

2010-09-24 Thread Koji Sekiguchi
(10/09/25 8:07), Jed Glazner wrote: Hi Koji, I'm trying to get the FVH to work per your suggestion, but I think I must have something misconfigured... Here is the field def in my schema.xml: Then here is my request handler in solrconfig.xml: edismax name_title^3 plain^6 grams^1 sou

Re: Solr Highlighting Question

2010-09-24 Thread Jed Glazner
Hi Koji, I'm trying to get the FVH to work per your suggestion, but I think I must have something misconfigured... Here is the field def in my schema.xml:                     Then here is my request handler in solrconfig.xml:        

Re: Solr Highlighting Issue

2010-09-17 Thread Lance Norskog
The same as with other formats. You give it strings to drop in before and after the highlighted text. On Fri, Sep 17, 2010 at 9:48 AM, Dennis Gearon wrote: > How does highlighting work with JSON output? > > Dennis Gearon > > Signature Warning > > EARTH has a Right To Life, >  oth

Re: Solr Highlighting Issue

2010-09-17 Thread Dennis Gearon
How does highlighting work with JSON output? Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Fri, 9/17/10, Ahson Iqbal wrote: > From: Ahson Iqbal > Subject: Solr Hi

Re: Solr Highlighting Issue

2010-09-17 Thread Ahson Iqbal
Hi Koji thank you very much it really works From: Koji Sekiguchi To: solr-user@lucene.apache.org Sent: Fri, September 17, 2010 7:11:31 PM Subject: Re: Solr Highlighting Issue (10/09/17 16:36), Ahson Iqbal wrote: > Hi All > > I have an issue in hig

Re: Solr Highlighting Issue

2010-09-17 Thread Koji Sekiguchi
(10/09/17 16:36), Ahson Iqbal wrote: Hi All I have an issue in highlighting that if i query solr on more than one fields like "+Contents:risk +Form:1" and even i specify the highlighting field is "Contents" it still highlights risk as well as 1, because it is specified in the query.. now if i s

Re: Solr Highlighting Question

2010-09-08 Thread Koji Sekiguchi
(10/09/09 2:26), Jed Glazner wrote: Thanks for taking time to read through this. I'm using a checkout from the solr 3.x branch My problem is with the highlighter and wildcards I can get the highlighter to work with wild cards just fine, the problem is that solr is returning the term matched

Re: Solr Highlighting Question

2010-09-08 Thread Jed Glazner
Anybody? On 09/08/2010 11:26 AM, Jed Glazner wrote: Thanks for taking time to read through this. I'm using a checkout from the solr 3.x branch My problem is with the highlighter and wildcards I can get the highlighter to work with wild cards just fine, the problem is that solr is retur

Re: solr highlighting

2010-03-29 Thread Lance Norskog
No problem: wrapping and unwrapping escaped text can be very confusing. On Fri, Mar 26, 2010 at 6:31 AM, Niraj Aswani wrote: > Hi Lance, > > apologies.. please ignore my previous mail.  I'll have a look at the > PatternReplaceFilter. > > Thanks, > Niraj > > Niraj Aswani wrote: >> >> Hi Lance, >>

Re: solr highlighting

2010-03-26 Thread Niraj Aswani
Hi Lance, apologies.. please ignore my previous mail. I'll have a look at the PatternReplaceFilter. Thanks, Niraj Niraj Aswani wrote: Hi Lance, Yes, that is once solution but wouldn't it stop people searching for something like "characters at the index time, one would have to write a quer

Re: solr highlighting

2010-03-26 Thread Niraj Aswani
Hi Lance, Yes, that is once solution but wouldn't it stop people searching for something like "characters at the index time, one would have to write a query like "

Re: solr highlighting

2010-03-25 Thread Lance Norskog
To display html-markup in an html page, it has to be in entity-encoded form. So, encode the <> as entities in your input application, and have it indexed and stored in this format. Then, the are inserted as normal. This gives you the html text displayable in an html page, with all words highlighta

Re: Solr highlighting doesn't respect quotes

2009-09-24 Thread Paul Tomblin
On Thu, Sep 24, 2009 at 7:04 PM, Koji Sekiguchi wrote: > Set hl.usePhraseHighlighter parameter to true: > > http://wiki.apache.org/solr/HighlightingParameters#hl.usePhraseHighlighter > > That seems to have done it. Thanks. -- http://www.linkedin.com/in/paultomblin

Re: Solr highlighting doesn't respect quotes

2009-09-24 Thread Koji Sekiguchi
Set hl.usePhraseHighlighter parameter to true: http://wiki.apache.org/solr/HighlightingParameters#hl.usePhraseHighlighter Koji Paul Tomblin wrote: If I do a query for a couple of words in quotes, Solr correctly only returns pages where those words appear exactly within the quotes. But the hig

RE: solr highlighting

2008-05-22 Thread Kevin Xiao
Just in case anyone wants to know: I figured out that you have to set uniqueKey stored="true" for highlighting to work. Thanks for everyone's help. Thanks, - Kevin -Original Message- From: Kevin Xiao [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 11:22 PM To: solr-user@lucene.apac

RE: solr highlighting

2008-05-22 Thread Kevin Xiao
Do you see anything wrong there? Thanks, - Kevin -Original Message- From: Mike Klaas [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2008 12:03 PM To: solr-user@lucene.apache.org Subject: Re: solr highlighting The minimum "stuff" needed to highlight term X in field F is: fie

RE: solr highlighting

2008-05-14 Thread Kevin Xiao
Yes. I did all that. Maybe my custom analyzer conflicts with highlighting. Thanks for the tips. - Kevin -Original Message- From: Mike Klaas [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2008 12:03 PM To: solr-user@lucene.apache.org Subject: Re: solr highlighting The minimum "

Re: solr highlighting

2008-05-14 Thread Mike Klaas
n Vogler [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2008 5:55 AM To: solr-user@lucene.apache.org Subject: Re: solr highlighting On Wednesday 14 May 2008 09:21:36 Kevin Xiao wrote: Hi there, I am new to solr. I want search term to be highlighted on the results. I thought it is pretty si

RE: solr highlighting

2008-05-14 Thread Kevin Xiao
ogler [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2008 5:55 AM To: solr-user@lucene.apache.org Subject: Re: solr highlighting On Wednesday 14 May 2008 09:21:36 Kevin Xiao wrote: > Hi there, > > I am new to solr. I want search term to be highlighted on the results. I > thought it is p

Re: solr highlighting

2008-05-14 Thread Christian Vogler
On Wednesday 14 May 2008 09:21:36 Kevin Xiao wrote: > Hi there, > > I am new to solr. I want search term to be highlighted on the results. I > thought it is pretty simple, but could not make it work. I read a lot of > solr documents and mail archives (I wish there is a search function for > this, w

RE: Solr Highlighting, word index

2007-12-10 Thread Owens, Martin
est Regards, Martin Owens -Original Message- From: Binkley, Peter [mailto:[EMAIL PROTECTED] Sent: Wed 12/5/2007 4:07 PM To: solr-user@lucene.apache.org Subject: RE: Solr Highlighting, word index We're doing a similar process using term vectors to look up the bounding-box data in

RE: Solr Highlighting, word index

2007-12-05 Thread Binkley, Peter
380. We're looking at using Lucene's new payload functionality. Peter -Original Message- From: Mike Klaas [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 05, 2007 2:19 PM To: solr-user@lucene.apache.org Subject: Re: Solr Highlighting, word index On 5-Dec-07, at 1:02 PM,

Re: Solr Highlighting, word index

2007-12-05 Thread Mike Klaas
On 5-Dec-07, at 1:02 PM, Owens, Martin wrote: Thanks Mike, So in essence I need to write a new RequestHandler plugin which takes the query string, tokenises it then perform a some kind of action against the index to return results which I should then be able to get the termVectors from?

RE: Solr Highlighting, word index

2007-12-05 Thread Owens, Martin
You do not necessarily need two requests; instead, you can override or modify the request handler you are using (StandardRequestHandler, DisMaxREquestHandler) to return the information. You'll have to process the Query to extract the terms (like HighlighingUtils does), then get the TermVe

Re: Solr Highlighting, word index

2007-12-05 Thread Mike Klaas
On 3-Dec-07, at 10:58 AM, Owens, Martin wrote: You can tell lucene to store token offsets using TermVectors (configurable via schema.xml). Then you can customize the request handler to return the token offsets (and/or positions) by retrieving the TVs. I think that is the best plan of actio

Re: Solr Highlighting, word index

2007-12-05 Thread Ryan McKinley
Owens, Martin wrote: Hello everyone, We're working to replace the old Linux version of dtSearch with Lucene/Solr, using the http requests for our perl side and java for the indexing. The functionality that is causing the most problems is the highlighting since we're not storing the text in so

RE: Solr Highlighting, word index

2007-12-03 Thread Owens, Martin
> You can tell lucene to store token offsets using TermVectors > (configurable via schema.xml). Then you can customize the request > handler to return the token offsets (and/or positions) by retrieving > the TVs. I think that is the best plan of action, how do I create a custom request h

Re: Solr Highlighting, word index

2007-11-30 Thread Erick Erickson
It's good you already have the data because if you somehow got it from some sort of calculations I'd have to tell my product manager that the feature he wanted that I told him couldn't be done with our data was possible after all ... About page breaks: Another approach to paging is to index a spe

Re: Solr Highlighting, word index

2007-11-30 Thread Mike Klaas
On 30-Nov-07, at 1:02 PM, Owens, Martin wrote: Hello everyone, We're working to replace the old Linux version of dtSearch with Lucene/Solr, using the http requests for our perl side and java for the indexing. The functionality that is causing the most problems is the highlighting since

RE: Solr Highlighting, word index

2007-11-30 Thread Owens, Martin
> Or I'm just completely off base here. A little, we already have the locations for each word on every ocr, we just need the word index to feed into the existing program. Best Regards, Martin Owens

Re: Solr Highlighting, word index

2007-11-30 Thread Erick Erickson
Oh, good luck on this! I've had similar issues and have just thrown up my hands. How do you expect to be able to correlate a word in the index with the bounding box in the OCR? I'm not sure this is a solved problem unless your OCR is *very* regular and clean. Even if you can calculate the ordinal p