Re: Issue w/ highlighting a String field

2010-03-24 Thread Saïd Radhouani
Thanks a lot Ahmet. Now I'm gonna learn new thing: how to apply a new patch :) Cheers. 2010/3/24 Ahmet Arslan > > Yes, that's what I was expecting. Actually, I'd like > > to highlight phrases > > containing stopwords, like Terrain à sehloul > > Lucene's FastVectorHighlighter[1] can do that kind

Re: Issue w/ highlighting a String field

2010-03-24 Thread Ahmet Arslan
> Yes, that's what I was expecting. Actually, I'd like > to highlight phrases > containing stopwords, like Terrain à sehloul Lucene's FastVectorHighlighter[1] can do that kind of phrase highlighting. It seems that solr integration [2] has finished. You need to apply SOLR-1268 patch. [1]http://l

Re: Issue w/ highlighting a String field

2010-03-24 Thread Saïd Radhouani
2010/3/24 Ahmet Arslan > > > Thank a lot Ahmet. In addition, I want to highlight phrases > > containing stop > > words. I guess that the best way is to use a tokenized type > > without > > stopwordFilter. Do you agree with me defining a new type > > for this purpose ? > > I am not sure about that

Re: Issue w/ highlighting a String field

2010-03-24 Thread Ahmet Arslan
> Thank a lot Ahmet. In addition, I want to highlight phrases > containing stop > words. I guess that the best way is to use a tokenized type > without > stopwordFilter. Do you agree with me defining a new type > for this purpose ? I am not sure about that. May be solr.CommonGramsFilterFactory ca

Re: Issue w/ highlighting a String field

2010-03-24 Thread Saïd Radhouani
2010/3/24 Ahmet Arslan > > With this configuration, the title field is highlighted > > only when there's a > > perfect match, i.e., the quoted query equals the title > > content (f.i., > > q="Terrain sehloul" allows highlighting the entire title > > containing "Terrain > > sehloul", > > Exactly.

Re: Issue w/ highlighting a String field

2010-03-24 Thread Ahmet Arslan
> With this configuration, the title field is highlighted > only when there's a > perfect match, i.e., the quoted query equals the title > content (f.i., > q="Terrain sehloul" allows highlighting the entire title > containing "Terrain > sehloul", Exactly. There should be a *perfect* match for str

Re: Issue w/ highlighting a String field

2010-03-24 Thread Saïd Radhouani
> I didn't know that you are using dismax. In your query fields list there is > no title field. Probably match is coming from title_tokenized, and when you > request highlighting from title (hl.fl=title) it returns empty snippets. If > thats the case it is pretty expected because string typed field

Re: Issue w/ highlighting a String field

2010-03-24 Thread Ahmet Arslan
> I don't have defaultSearchField, instead, I have the > following qf clause, > where title_tokenized is a tokenized version of title  >         name="qf"> title_tokenized^3 text_description_tokenized > phonetic_text^0.5 I didn't know that you are using dismax. In your query fields list there is

Re: Issue w/ highlighting a String field

2010-03-24 Thread Saïd Radhouani
2010/3/24 Ahmet Arslan > > There's a match between the query and > > the content of field I want to > > highlight on. Solr is giving me the id of the document > > matching my query, > > but it's not displaying the field I want to highlight on. > > > > Here's the definition of the field I want to

Re: Issue w/ highlighting a String field

2010-03-24 Thread Ahmet Arslan
> There's a match between the query and > the content of field I want to > highlight on. Solr is giving me the id of the document > matching my query, > but it's not displaying the field I want to highlight on. > > Here's the definition of the field I want to highlight > on:        name="title" t

Re: Issue w/ highlighting a String field

2010-03-24 Thread Saïd Radhouani
There's a match between the query and the content of field I want to highlight on. Solr is giving me the id of the document matching my query, but it's not displaying the field I want to highlight on. Here's the definition of the field I want to highlight on: And here's part of my URL: /?

Re: Issue w/ highlighting a String field

2010-03-23 Thread Ahmet Arslan
> Thanks Erik. Actually, I restarted > and reindexed numers of time, but still > not working. Highlighting on string typed fields perferctly works. See the output of : http://localhost:8983/solr/select/?q=id%3ASOLR1000&version=2.2&start=0&rows=10&indent=on&hl=true&hl.fl=id But there must be a ma

Re: Issue w/ highlighting a String field

2010-03-23 Thread Saïd Radhouani
Thanks Erik. Actually, I restarted and reindexed numers of time, but still not working. RE: your question, I intend to use this field for automatic PHRASED boosting; is that ok?: title_sort Thanks. 2010/3/23 Erick Erickson > Did you restart solr and reindex? just changing the field

Re: Issue w/ highlighting a String field

2010-03-23 Thread Erick Erickson
Did you restart solr and reindex? just changing the field definition won't help you without reindexing... One thing worries me about your fragment, you call it text_Sort. If you really intend to sort by this field, it may NOT be tokenized, you'll probably have to use copyfield HTH Erick On T

Re: Issue w/ highlighting a String field

2010-03-23 Thread Saïd Radhouani
Thanks Markus. It says that a tokenizer ust be defined for the field. Here's is the fildType I'm using and the field I want to highlight on. As you can see, I defined a tokenizer, but it's not working though. Any idea? In the schema:

Re: Issue w/ highlighting a String field

2010-03-23 Thread Markus Jelsma
Hello, Check out the wiki [1] on what options to use for highlighting and other components. [1]: http://wiki.apache.org/solr/FieldOptionsByUseCase Cheers, On Tuesday 23 March 2010 17:11:42 Saïd Radhouani wrote: > I have trouble with highlighting field of type "string". It looks like > hig