What is correct use of HTMLStripCharFilter in Solr 3.1

2011-05-12 Thread nicksnels
Hi,

I recently upgraded from Solr 1.3 to Solr 3.1 in order to take advantage of
the HTMLStripCharFilter. But it isn't working as I expected.

I have a text field that may contain HTML tags. I however would like to
store it in Solr without the HTML tags. And retrieve the text field for
display and for highlighting without HTML tags.

I added charFilter class=solr.HTMLStripCharFilterFactory/ to the top of
fieldType name=text class=solr.TextField positionIncrementGap=100
autoGeneratePhraseQueries=true in the schema.xml file of the solr
example, both in analyzer type=index and in analyzer type=query.

And the text field is simply:

field name=text type=text indexed=true stored=true/

Now, when I do a search. The text field still has all the HTML tags in them
and the highlighting is totally screwed up with em tags around virtually
every word. What am I doing wrong?

Kind regards,

Nick

--
View this message in context: 
http://lucene.472066.n3.nabble.com/What-is-correct-use-of-HTMLStripCharFilter-in-Solr-3-1-tp2933021p2933021.html
Sent from the Solr - User mailing list archive at Nabble.com.


Amazon like search function

2010-11-21 Thread nicksnels

Hi,

I'm looking for ideas on how to implement an Amazon.com like search
function. If for example you do a search on - optimization algorithm java.
Amazon first returns results that contain all of these keywords, then
followed by a list that contains both the words optimization algorithm,
then a list with books that contain the words algorithm java and finally a
list with books that contain both the words optimization java. 

At the moment I'm using the solrQueryParser defaultOperator=OR option, but
this returns to many results. I have tried to switch to the AND option but
that option returns to few results. So I would like to present the results
like Amazon does, so the user has some more options to choose from.

Kind regards,

Nick
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Amazon-like-search-function-tp1940223p1940223.html
Sent from the Solr - User mailing list archive at Nabble.com.