simple filter query solr processing

2008-11-10 Thread joeMcElroy

i have instances of felds which have commas seperating them. i need it to be
treated as one filter (even tho its seperated by commas) for example

facet : film,media,mass communication

rendered result by solr

Cannot parse ' +i_subjects:"Film': Lexical error at line 1, column 19. 
Encountered:  after : "\"Film"

i_subjects:"Film&fq=+media&fq=+mass+communication"

i do not want it splitting commas and replacing them with fq, but completely
matching on i_subjects:"film,media,mass communication"

is this possible? i reckon there is some config option to turn this off? 

background to the problem

i am indexing items which have a metadata called subjects. this would be for
example humanities/film, media, mass communication/film

im tokenizing on the "/" which results in humanities ; film, media, mass
communication

everything works except when the 'category' involves ","

tried with removing the quotes 

 fq=+%2Bi_subjects:Film&fq=+media&fq=+mass+communication

but results in no matches

tried splitting on the commas and inserting the key at each part

+%2Bi_subjects:Film+%2Bi_subjects:+media+%2Bi_subjects:+mass+communication

showed no results.



tried removing the plusses i am inserting but now shows too many results

&fq=+i_subjects:Film+i_subjects:+media+i_subjects:+mass+communication

tried putting quotes in between each filter part

&fq=+i_subjects:"Film"+i_subjects:"+media"+i_subjects:"+mass+communication"

now shows too few results


any pointers please?

joe


-- 
View this message in context: 
http://www.nabble.com/simple-filter-query-solr-processing-tp20418363p20418363.html
Sent from the Solr - User mailing list archive at Nabble.com.



Filters: acute accent characters replaced with their english counterpart

2008-11-10 Thread joeMcElroy

I need a custom filter to be added to a field which will replace special
foreign characters with their english counterpart. 

for example ø => o
Grave À È Ì Ò Ù à è ì ò ù => A E I O U a e i o u 
Circumflex Â Ê Î Ô Û â ê î ô û  => A E I O U a e i o u

is this possible?

joe
-- 
View this message in context: 
http://www.nabble.com/Filters%3A-acute-accent-characters-replaced-with-their-english-counterpart-tp20416888p20416888.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Filters: acute accent characters replaced with their english counterpart

2008-11-10 Thread joeMcElroy

cheers for the quick response!

joe


-- 
View this message in context: 
http://www.nabble.com/Filters%3A-acute-accent-characters-replaced-with-their-english-counterpart-tp20416888p20418586.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: simple filter query solr processing

2008-11-12 Thread joeMcElroy

tried that and managed to get no results. cheers for the help

&fq=i_subjects:Anesthesia&fq=i_subjects:Intensive+Care&fq=i_subjects:Pain+Management



ryantxu wrote:
> 
>>
>> tried removing the plusses i am inserting but now shows too many  
>> results
>>
>> &fq=+i_subjects:Film+i_subjects:+media+i_subjects:+mass+communication
>>
> 
> fq is a multi-valued field, try calling it like:
> 
> &fq=i_subjects:Film&fq=i_subjects:mass communication&fq=...
> 
> ryan
> 
> 

-- 
View this message in context: 
http://www.nabble.com/simple-filter-query-solr-processing-tp20418363p20457529.html
Sent from the Solr - User mailing list archive at Nabble.com.



omiting no price documents when sorting on price

2008-11-26 Thread joeMcElroy

im sure this is an easy question but...

when a product doesn't have a price, I index the price as 0. When sorting on
price, these values come up first or last. How can you omit these items when
sorting against price. 

thanks

joe 
-- 
View this message in context: 
http://www.nabble.com/omiting-no-price-documents-when-sorting-on-price-tp20703795p20703795.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: omiting no price documents when sorting on price

2008-11-27 Thread joeMcElroy

was hoping there was an option to omit results with a certain value to stop
certain fields containing 0 skewing the search results.

i will try not sending the field if its 0. cheers!

joe


joeMcElroy wrote:
> 
> im sure this is an easy question but...
> 
> when a product doesn't have a price, I index the price as 0. When sorting
> on price, these values come up first or last. How can you omit these items
> when sorting against price. 
> 
> thanks
> 
> joe 
> 

-- 
View this message in context: 
http://www.nabble.com/omiting-no-price-documents-when-sorting-on-price-tp20703795p20716352.html
Sent from the Solr - User mailing list archive at Nabble.com.



Date range query where doc has more than one date field

2009-01-20 Thread joeMcElroy

Hi 

sorry if this is a trival question but :

i have a doc which has more than one datefield. they are start and end. now
i need the user to specify a date range, and i need to find all docs which
user range is between the docs start and end date fields.

searching on this mail group someone has suggested having a single date
field which is multivalued, and specify the range query against this field
and should work.

any other suggestions?
-- 
View this message in context: 
http://www.nabble.com/Date-range-query-where-doc-has-more-than-one-date-field-tp21560935p21560935.html
Sent from the Solr - User mailing list archive at Nabble.com.



Removing facets which frequency match the result count

2010-01-05 Thread joeMcElroy

Is there any way to specify to solr only to bring back facet filter options
where the frequency is less than the total results found? I found facets
which match the result count are not helpful to the user, and produce noise
within the UI to filter results.

 I can obviously do this within the view but would be better if solr dealt
with this logic.

Cheers!
Joe
-- 
View this message in context: 
http://old.nabble.com/Removing-facets-which-frequency-match-the-result-count-tp27026359p27026359.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Removing facets which frequency match the result count

2010-01-07 Thread joeMcElroy

Hi there

If i have two documents with a field indexing a taxonomy path for example
doc1: bags/handbags/clutch
doc2: bags/handbags/beach

and that field tokenizes on the forward slash, the facets produced will be :
bags(2), handbags(2),beach(1),clutch(1)

if i select clutch, the facets returned by solr will be handbags (1) and
bags(1). I would like to have no facets returned. 

Therefore I want facets only to be returned if the facet frequency is
smaller than the total results found. this will return a more helpful
selection of facets for the user to then refine their search. In this
example the user would not want to select 'bags' when they have selected
handbags as it will not help the user in their search.

We can remove these facets within the view but was asking if there is a more
elegant way to do this in SOLR.



Otis Gospodnetic wrote:
> 
> Hi,
> 
> Either I don't understand this or this doesn't make much sense.
> Are you saying you want to show only facet values whose counts == # of
> hits?
> If so, what would be the value of showing facets -- they wouldn't be
> narrowing down the result set.
> 
>  Otis
> --
> Sematext -- http://sematext.com/ -- Solr - Lucene - Nutch
> 
> 
> 
> - Original Message 
>> From: joeMcElroy 
>> To: solr-user@lucene.apache.org
>> Sent: Tue, January 5, 2010 5:25:18 AM
>> Subject: Removing facets which frequency match the result count
>> 
>> 
>> Is there any way to specify to solr only to bring back facet filter
>> options
>> where the frequency is less than the total results found? I found facets
>> which match the result count are not helpful to the user, and produce
>> noise
>> within the UI to filter results.
>> 
>> I can obviously do this within the view but would be better if solr dealt
>> with this logic.
>> 
>> Cheers!
>> Joe
>> -- 
>> View this message in context: 
>> http://old.nabble.com/Removing-facets-which-frequency-match-the-result-count-tp27026359p27026359.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Removing-facets-which-frequency-match-the-result-count-tp27026359p27068209.html
Sent from the Solr - User mailing list archive at Nabble.com.