urlencode replaces & with space thus resulting in results that contains
even the single terms like in the case of mobile & accessories it replaces
it with mobile accessories and results the document containing even
accessories which i dont want. how to tackle this I tried using pattern
replace filter at query time to replace & with and but it did not worked I
used & => replace with "and" in this but did not worked any guess our
help..

thanks
regards
rohan


On Thu, Apr 11, 2013 at 4:39 PM, Rohan Thakur <rohan.i...@gmail.com> wrote:

> hi erick
>
> do we have to do urlencoding from the php side or does solr supports
> urlencode?
>
>
> On Thu, Apr 11, 2013 at 5:57 AM, Erick Erickson 
> <erickerick...@gmail.com>wrote:
>
>> Try URL encoding it and/or escaping the &
>>
>> On Tue, Apr 9, 2013 at 2:32 AM, Rohan Thakur <rohan.i...@gmail.com>
>> wrote:
>> > hi all
>> >
>> > one thing I wanted to clear is for every other query I have got correct
>> > suggestions but these 2 cases I am not getting what suppose to be the
>> > suggestions:
>> >
>> > 1) I have kettle(doc frequency =5) and cable(doc frequecy=1) word
>> indexed
>> > in direct solr spell cheker..but when I query for cattle I get cable as
>> > only suggestion and not kettle why is this happening i want to get
>> kettle
>> > in suggestion as well im using jarowinkler distance according to which
>> > score for cattle => cable which is coming out to be 0.857 and for
>> cattle =>
>> > kettle which is coming out to be 0.777  kettle should also come in
>> > suggestions but its not how can I correct this any one.
>> >
>> > 2) how to query for sentence like "hand blandar & chopper" as & is
>> > delimiter for solr query and thus this query is returning error.
>> >
>> > thanks in advance
>> > regards
>> > Rohan
>>
>
>

Reply via email to