SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: Compass Highlighting with fragment separator

This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 15 - Pages: 2 [ 1 2 | Next ] - Last Post: Dec 2, 2011 6:41 PM Last Post By: hanjian
vam

Posts: 259
Registered: 1/2/07
Compass Highlighting with fragment separator
Posted: Mar 14, 2008 1:19 PM
 
  Click to reply to this thread Reply
This is my highlighter config:
<highlighter name="default" textTokenizer="auto" rewriteQuery="true" maxNumFragments="1" separator="bfrage">
                <fragmenter type="simple" size="200"/>
                <encoder type="default"/>
                <simpleFormatter pre="&lt;b id='hl'&gt;" post="&lt;/b&gt;"/>
            </highlighter>


then I trying to get a highlighted flagment but it returns more than one fragment including the separator

 CompassHighlighter ch = hits.highlighter(i);
                ch.setHighlighter("default");
 
                e.setContent(ch.fragment("content"));
                e.setCategory(ch.fragment("category"));
                e.setTitle(ch.fragment("title"));
                e.setUsername(ch.fragment("userName"));
                
                //we need to respect comment separators while highlighting
                e.setComment(ch.fragmentsWithSeparator("comments")); 


I hava indexed a blogEntry with a bunch of comments separated by "bfrage" and I want to return a highlighted comment without going over to the next comment.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Compass Highlighting with fragment separator
Posted: Mar 15, 2008 2:28 PM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
Things look right. Is there a chance that you can write a simple test case (have a look at Compass test package for the highlighter: org.compass.core.test.highlighter?
vam

Posts: 259
Registered: 1/2/07
Re: Compass Highlighting with fragment separator
Posted: Mar 15, 2008 4:52 PM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
I think the problem I have is related to my misunderstanding of what a fragment is. Fragments are created by the highlighter and the separator is added when retrieving more than one fragment form the highlighter. I though the fragment was defined by indexing by adding a seperator between comments and then fragmenting based on that separator.

I fix the problem by adding a post-processing routine after retrieving the fragment. The post processing just looks for the separator and retrieves the partial highlighted comment without going over the boundary of the next comment or the previous comment.

Still, it would be nice to combine a collection of comments into a single field, concatenated together by a separator and using a fragmenter that can return highlighted fragments respecting comment boundaries.
helloyajun

Posts: 38
Registered: 9/22/11
UGG
Posted: Sep 22, 2011 1:49 AM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
The German scientist Ugg UK made use of the 3 Ds recently stereoscopic printed the technique to successfully develop a kind of artificial blood vessel.That research result will already hope is used for the human body to experiment to test with the medicine. Technically fly along with the Ugg Boots Sale UK living creature medical treatment to soon develop, the scientists have already succeeded to make small scaled human body organs such as the artificial bowel Ugg Boots UK way and artificial windpipe.
marinarobert

Posts: 12
Registered: 10/7/11
Re: Compass Highlighting with fragment separator
Posted: Oct 7, 2011 2:32 AM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
Hey...this is a wonderful website buddy and an informative post!!! i am new here and i found this site very interesting and informative ,, you are a professional blogger i think i have a great interest in such things...thank you for the post buddy and keep on posting nice stuff like this :) i am a student.
646-223 test
646-230 test
646-364 questions
646-578 practice test
646-656 answers
646-671 practice test
646-985 tests
650-177 questions
1111

Posts: 43
Registered: 10/13/11
Re: Compass Highlighting with fragment separator
Posted: Oct 13, 2011 2:11 AM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
According rubber duck bootsto media reports, after nearly four months to prepare, October 11 opening of the "charity of the Light - China Charity-cum-exhibition rubber duck outletof achievements in charity group members", the China Charity Federation released its 2010 annual audit report.

The annual report, the China Charity Federation total expenditure 7.046 billion yuan that year, of which 7.039 billion yuan public welfare spending, and administrative expenses for 7.6095 million yuan. Original Rubberduck Snowjoggers Sporty Patent Pink Paradise
Rubber Duck High Boots violetCalculated in accordance with the above data, in 2010, China Charity Federation, the total expenditure 7.0 billion, management fees of only 7.61 million yuan, extraction ratio of 0.11%.

In addition,SPORTY SNOW JOGGERS FLANNEL red the report shows, the China Charity Federation 42 staff, the highest paid of the project, the annual wages of 52,000 yuan per capita; Fan Baojun, president of the annual salary of only 4.8 million, the Finance Ministry, the office and SPORTY SNOW JOGGERS FLANNEL1other administrative departments annual per capita wage income is no more than 4 million, there are a dozen part-time vice president and director, not paychecks.
uiuu

Posts: 100
Registered: 10/14/11
Re: Compass Highlighting with fragment separator
Posted: Oct 14, 2011 10:25 PM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
Attachment Water lilies.jpg (81.8 KB)
I Dateiformat neuen Ursache decease von dem so genannten into purchase microsoft office 2007 Datenbanken clusters ACCDB fur. This consignment, Replikate unterstutzt von Datenbanken. Download Office 2007 can give population so much convenience.Office 2007 is greeted by the total world.
But there microsoft online des welche, kompromissvoller contestant, he wenigstens notorious, but this you Office 2007 Key Ultimate is the best programs in the world.
Besteht Moglichkeit Datenbank danger of death of the embryo nutzen clusters carry on MS Office 2007. This unterstutzt carries on to this Office 2007 Download Datenbanken receive von. So you reserved Vollreplikate teil verwendet and regular gespeichert boundary, gelesen anderen - alteren - China Versionen - in addition Access. buy microsoft office 2007 can give population more astonish ever.
Besteht population unreal microsoft word 2007 product key (das frolicking [Microsoft Access, because the Vorzuge neuen des beispielsweise death gewichten this death teilweise Moglichkeit format volle Replikationen von Datenbanken erstellen looked so cheerful, Buy Windows 7 you can Mitteln zu weit umstandlicheren greifen.
he hua ye

Posts: 56
Registered: 10/15/11
Re: Highlighter with CompassSearchHelper
Posted: Oct 15, 2011 3:33 AM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
Coach bags outlet offer great discount in this winter, and coach outlet own its unique design and fashion styles. Coach bags are more and more popular among people. Huge celebrities like moncler outlet in recent years. Moncler bring you warm and beauty in this winter. Moncler online offer moncler jackets for men and women. Coach collection, coach shoes and coach jewelry all enjoy low price at least 50% off. Moncler sale welcome you to buy moncler shop in monclers. Coach factory outlet welcome you!
owuya

Posts: 8
Registered: 10/31/11
Re: Compass Highlighting with fragment separator
Posted: Oct 31, 2011 1:57 AM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
I like Moncler Badia
I like Moncler Jacken
I like Moncler Daunenjacke
I like Moncler Branson

I like Frauen Moncler Weste
I like neuen Stil Frauen Moncler Weste
I like hohe Qualität Frauen Moncler Weste

I like Frauen Moncler Jacke
I like warm Frauen Moncler Jacke
I like Mode Frauen Moncler Jacke

I like Damen Moncler Mäntel
I like Mode Damen Moncler Mäntel
I like stilvoll Damen Moncler Mäntel

I like Männer Moncler Daunen weste
I like modischen Stil Männer Moncler Daunen weste
I like billig Männer Moncler Daunen weste

I like Herren Moncler Jacken
I like cool Herren Moncler Jacken
I like Mode Herren Moncler Jacken

I like Männer Moncler Mäntel
I like Billig Männer Moncler Mäntel
I like Moncler Mäntel Männer

I like Moncler Kinder
I like warm Moncler Kinder
I like hohe Qualität Moncler Kinder

I like Moncler polo Hemd
I like billig Moncler polo Hemd
I like komfortabel Moncler polo Hemd

I like Frauen Moncler hoody
I like beliebt Frauen Moncler hoody
I like billig Frauen Moncler hoody

I like Frauen Moncler Pullover
I like Mode Frauen Moncler Pullover
I like schön Frauen Moncler Pullover

I like Männer Moncler Pullover
I like komfortabel Männer Moncler Pullover
I like cool Männer Moncler Pullover

I like Moncler Handtasche
I like Mode Moncler Handtasche
I like billig Moncler Handtasche

I like Frauen Moncler Stiefel
I like billig Frauen Moncler Stiefel
I like Mode Frauen Moncler Stiefel

I like Herren Moncler Schuhe
I like komfortabel Herren Moncler Schuhe
I like Mode Herren Moncler Schuhe

I like Moncler Schal &Hut
I like komfortabel Moncler Schal &Hut
I like cool Moncler Schal &Hut

I like Køb Moncler
I like Moncler Online
I like Moncler Jakker
I like Discount Moncler Jakker

I like Moncler ned Frakker Mænd
I like Billige Moncler ned Frakker Mænd
I like Mænd Moncler Ned Frakker

I like Moncler ned Frakker Kvinder
I like mode Moncler ned Frakker Kvinder
I like stilfuld Moncler ned Frakker Kvinder

I like Moncler ned Jakke Mænd
I like køligt Moncler ned Jakke Mænd
I like mode Moncler ned Jakke Mænd

I like Moncler ned Jakke Kvinder
I like varme Moncler ned Jakke Kvinder
I like mode Moncler ned Jakke Kvinder

I like Moncler ned Vest Mænd
I like moderne stil Moncler ned Vest Mænd
I like billige Moncler ned Vest Mænd

I like Moncler ned Vest kvinder
I like ny stil Moncler ned Vest kvinder
I like høj kvalitet Moncler ned Vest kvinder

I like Moncler håndtasker
I like mode Moncler håndtasker
I like billige Moncler håndtasker

I like Moncler Hættetrøje kvinder
I like Populære Moncler Hættetrøje kvinder
I like billige Moncler Hættetrøje kvinder

I like Moncler Børn
I like varme Moncler Børn
I like høj kvalitet Moncler Børn

I like Moncler Mænd Sko
I like komfortable Moncler Mænd Sko
I like mode Moncler Mænd Sko

I like Moncler Polo Skjorte
I like billige Moncler Polo Skjorte
I like komfortable Moncler Polo Skjorte

I like Moncler halstørklæde & hat
I like komfortable Moncler halstørklæde & hat
I like køligt Moncler halstørklæde & hat

I like Moncler Trøjer Mænd
I like komfortable Moncler Trøjer Mænd
I like køligt Moncler Trøjer Mænd

I like Moncler Sweaters Kvinder
I like mode Moncler Sweaters kvinder
I like smukke Moncler Sweaters kvinder

I like Moncler Kvinder Støvler
I like billige Moncler Kvinder Støvler
I like mode Moncler Kvinder Støvler

I like Moncler
I like Moncler куртки
I like Moncler Покупка
I like Moncler Outlet

I like Moncler вниз пальто люди
I like Дешево Moncler вниз пальто люди
I like люди Moncler вниз пальто

I like Moncler вниз пальто женщины
I like способ Moncler вниз пальто женщины
I like стильно Moncler вниз пальто женщины

I like Moncler вниз куртки люди
I like холодно Moncler вниз куртки люди
I like способ Moncler вниз куртки люди

I like Moncler вниз куртки женщины
I like тепло Moncler вниз куртки женщины
I like способ Moncler вниз куртки женщины

I like Moncler вниз жилет люди
I like модный тип Moncler вниз жилет люди
I like дешево Moncler вниз жилет люди

I like Moncler вниз жилет женщины
I like новый стиль Moncler вниз жилет женщины
I like высокое качество Moncler вниз жилет женщины

I like Moncler Сумки
I like мода Moncler Сумки
I like дешевый Moncler Сумки

I like Moncler Женщины Hoody
I like популярно Moncler Женщины Hoody
I like дешево Moncler Женщины Hoody

I like Moncler Малыши
I like тепло Moncler Малыши
I like высокое качество Moncler Малыши

I like Moncler люди ботинки
I like удобный Moncler люди ботинки
I like мода Moncler люди ботинки

I like Moncler Поло рубашка
I like дешево Moncler Поло рубашка
I like удобный Moncler Поло рубашка

I like Moncler Шарф & шляпа
I like удобный Moncler Шарф & шляпа
I like холодно Moncler Шарф & шляпа

I like Moncler Свитер люди
I like удобно Moncler Свитер люди
I like холодно Moncler Свитер люди

I like Moncler Свитер женщины
I like способ Moncler Свитер женщины
I like красивейше Moncler Свитер женщины

I like Moncler женщины ботинки
I like дешево Moncler женщины ботинки
I like способ Moncler женщины ботинки


I like Canada Goose
I like Canada Goose jakker
I like Canada Goose Sale

I like Canada Goose Parka
I like varm Canada Goose Parka
I like mote stil Canada Goose Parka

I like Menn Snø Mantra Parka
I like Menn Snø Mantra Parka til salgs
I like Menn Snø Mantra Parka online

I like Menn Yorkville Jakker
I like billig Menn Yorkville Jakker
I like Varm Menn Yorkville Jakker

I like Menn Citadel Parka
I like selg Menn Citadel Parka
I like Menn Citadel Parka online

I like Menn Chilliwack bomber
I like Menn Chilliwack bomber engroshandel
I like billig Menn Chilliwack bomber

I like Menn ekspedisjon Jakker
I like billig Menn ekspedisjon Jakker
I like Varm Menn ekspedisjon Jakker

I like Menn resolutt Parka
I like varm Menn resolutt Parka
I like høy kvalitet Menn resolutt Parka

I like Canada Goose frakk
I like varm Canada Goose frakk
I like billig Canada Goose frakk

I like Kvinners Chilliwack Jakker
I like høy kvalitet Kvinners Chilliwack Jakker
I like stilig Kvinners Chilliwack Jakker

I like Kvinners solaris frakk
I like populær Kvinners solaris frakk
I like varm Kvinners solaris frakk

I like Kvinners Trillium frakk
I like mote Kvinners Trillium frakk
I like populær Kvinners Trillium frakk

I like Kvinner ekspedisjon Parka
I like stilig Kvinner ekspedisjon Parka
I like billig Kvinner ekspedisjon Parka

I like Kvinners Montebello frakk
I like billig Kvinners Montebello frakk
I like høy kvalitet Kvinners Montebello frakk

I like CG55 Kensington Parka
I like høy kvalitet CG55 Kensington Parka
I like varm CG55 Kensington Parka

I like Kvinners Constable frakk
I like ny stil Kvinners Constable frakk
I like populær Kvinners Constable frakk

I like Canada Goose Vest
I like varm Canada Goose Vest
I like Canada Goose Vest til salgs

I like Canada Goose Menn Vest
I like avkjøl Canada Goose Menn Vest
I like varm Canada Goose Menn Vest

I like Canada Goose kvinner Vest
I like mote Canada Goose kvinner Vest
I like varm Canada Goose kvinner Vest

I like Canada Goose Hansker
I like varm Canada Goose Hansker
I like kjøp Canada Goose Hansker

I like Menn ned hanske
I like avkjøl Menn ned hanske
I like varm Menn ned hanske

I like Kvinner ned hanske
I like varm Kvinner ned hanske
I like mote Kvinner ned hanske

sweet123

Posts: 211
Registered: 10/31/11
Re: Compass Highlighting with fragment separator
Posted: Oct 31, 2011 3:12 AM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
As one of the most famous brands Coach Factory Outlet and the representatives of fashion, Coach Outlet Store Online always goes in the top of fashion, never fall behind Coach Outlet Online Store. Look into the fashion world, you will find Coach Outlet Factory that there are so many newest products pushed out by Coach Handbags Outlet. Coach Store, the most support of Coach Factory Outlet Online once appeared had earned a lot of women's heart, even the famous actresses. All of these, they are our Prada Store, and I will cherish them in lifetime. Perhaps you don't know, in my heart, Air Yeezy Shoes are my sisters, in the daily life, I call Gucci Bags sisters, that is because Coach Oulet USA really are my sisters, when I have trouble, Coach Outlet Store Online always help me to deal with it, when I am wronged, Louis Vuitton Outlet Factory will more angry than me to condemn others, Yes, Louis Vuitton Outlet Store Online are my sisters, we are envy Coach Handbags.Because I have Nike Dunk Shoes, my dear sisters!
lvzeng

Posts: 268
Registered: 11/13/11
louis vuitton
Posted: Nov 13, 2011 7:56 PM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
Owning

louis vuitton bags

of their own has been the dreams of many fad-seeking people for a quite long time.
You need not worry about the quality of the

coach outlet store online

for sale now. The Coach brand is famous for the perfect products.
I am so confused that I don,t even know where to buy the

louis vuitton

Handbags. Because I can prefer to chose the fashionable design, favorable price, top service .

coach outlet store online

with fashion style and top quality succeed. In any occasions they are very suitable and appropriate for its precise and rich design.
They're not chosen, so one of these ideal for you.For more flexibleness a lot more like these, there are lots of discount 'shoulder' variations outlet

louis vuitton bags

.

hermes birkin

is an Austrian success story par excellence. At the end of the 19th century Daniel Swarovski founded a company with the aim to cut crystals automatically.

coach outlet store

vision system is a visual enjoy, is a visual art. The particular design has been integrated function and the element of elegancy, then show you an exquisite and excellent product.
coach8outlet

Posts: 282
Registered: 11/13/11
Re: Compass Highlighting with fragment separator
Posted: Nov 14, 2011 1:40 AM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply

louis vuitton handbags

enjoy high reputation all over the world. They are designed for hand, elbow and shoulder carry thanks to comfortable flat leather handles.
If you have been to the mall lately and browsed

coach outlet

you may find that a high price tag goes along with just about everything in the mall.
This client-oriented and faith-rooted store aims at providing the best LV goods and services, such as top-class

louis vuitton uk

and free shipping.
Turn your attention to such discount coach sneakers for women from Coach Outlet Store online, you will find something unique and special of such authentic coach for sale at coach factory outlet store online.

louis vuitton outlet

online just like a person who want to show himself in front of other people, because he is confident enough, he can attain the respect of other people.
Bezel-set

hermes birkin bag

are showcased in all their brilliance in the chic and timeless design of this tennis bracelet. Rhodium-plated metal bracelet with foldover clasp.
The

coach outlet store online

are utilized for formal event in company area that will display your excellent taste.Not only does a briefcase make is easier to carry things.
tonnyben

Posts: 270
Registered: 11/14/11
Re: Spring inheritance, lazy-init with Compass namespace?
Posted: Nov 14, 2011 2:35 AM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply

coach factory outlet online

featured with stylish leather bags and signature materials, and carry this bag, it can designate people seem to be captivatingly feminine and good-looking. Why not to buy one when it is at an affordable price?
The products that

louis vuitton outlet

is countless, such as: purses, bags, handbags, shoes, belt. Even the same kind of product includes the products for women, the products for men, for summer-day use, for winter-day use.So, it is probably far beyond your imagination.
As a perfect combination of classic and modern fashion,

coach outlet online

can show the customers'unique personality.

hermes birkin

is your premier online shop for a wide range of quality Swarovski Crystal products such as Swarovski Crystals earring, Jewelry, Bracelet etc.
You could find them in desirable quality and price. If you don't mind high class louis vuitton replica bags, have a good time at

louis vuitton outlet online

.

coach purses

tend to be among finest style strikes associated with these days! They're the standing image that many ladies possess, or even, intend on obtaining.
sweet123

Posts: 211
Registered: 10/31/11
Re: Compass Highlighting with fragment separator
Posted: Nov 30, 2011 9:35 PM   in response to: vam in response to: vam
 
  Click to reply to this thread Reply
Welcome to visitCoach Outlet OnlineShop!Here you can buy the cheapest but good qualityCoach Factory Outle .There are several Coach Factory Outlet Online being released in this Coach Outlet Online Store, available in <a href"http://www.coach--outletfactory.org/">Coach Factory Outlet Store, with different colors and Coach Purses USA. Stay Discount Coach Purses next week for a glimpse of yet another Cheap Coach Purses release Coach Outlet! My obsession with the Coach Outlet Online Store. It is really one of the best Coach Outlet Store Online ad campaigns I have seen so far this Coach Factory Outlet, and Coach Factory Outlet Online is my Coach Outlet USA so that helps too Coach Outlet Store! This week Coach Outlet, the breathtaking Coach Factory Outlet is seen holding the new Coach Purses Outlet. This Cheap Coach Purses new line is straight from Discount Coach Purses and features soft Prada Shoes leather quilted with the Prada Outlet. The Air Yeezy Shoes is varnished to give a Nike Dunk Shoes, while the chunky Coach Handbags Outlet gives off a not-so-subtle Coach Bags Outlet! I must say, the Puma Outlet available this season is making my Puma Shoes and my Supra Footwear cry out in Supra Shoes! I think Air Max Shoes could be one of the hottest shoes.
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums