Re: Urldecode Problem

2007-10-07 Thread Yonik Seeley
On 10/6/07, Frederik M. Kraus <[EMAIL PROTECTED]> wrote:
> Looks like we ran into a urldecode problem when having certain query
> strings. This is what happens:
>
> Client:  Jeffrey's Bay   ->   Jeffrey%26%2339%3Bs+Bay   (php 5.2
> urlencode/rawurlencode)

It looks like the client is doing XML escaping as it replaces ' with '
Then each char of the ' is URL encoded.  This is incorrect of
course, urlencoding has nothing to do with XML.

-Yonik


Re: query syntax for complement set

2007-10-07 Thread Chris Hostetter

: The query is against a schema that stores the user_ids who have worked on each
: document in a multi-value integer field called 'user_ids'.  I'd like to query
: solr for all documents that anyone other than a few users have worked on.
: 
: For instance, say the user group I'm working with is user_ids 1, 3, and 6.
: I'd like to get back the documents that any other users have worked on--the
: complement set of users.  This would be too many users to list out
: individually, I imagine.

if i'm understanding correctly you want documents where a multivalued 
field contains at least one value which is not in your input set (even if 
it also contains some items which are in your input set), is that correct?

I can't think of anyway to do that off the top of my head ... hmmm...  no 
that's a touch one.  set operations in Solr (and when matching in 
lucene) are really all about the documents themselves ... there's really 
no easy way to operate on the set of values for a field for a doc.

you could probably acheive something like this with a custom FunctionQuery 
(you can do almost anything with a FunctionQuery) -- but you'd have to 
write a custom ValueSource that knows about multiple values first.



-Hoss



Re: Merging multiple Solr Indexes

2007-10-07 Thread Chris Hostetter

: Is there a simple way (or command line tool)
: to merge different Solr indexes (located on different machines)
: into one ?

Solr doesn't have anything like this built in, but there is a command line 
java class in Lucene that can do this, it's 
org.apache.lucene.misc.IndexMergeTool in the miscelleneous contrib.

PS...

http://people.apache.org/~hossman/#threadhijack

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is "hidden" in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/Thread_hijacking



-Hoss



Re: Middleword and text group search

2007-10-07 Thread Chris Hostetter

: this is my first day with Solr and now I'm looking if there is a way to make
: a middleword search like:
: *searchword*

FYI: i've never seen the term "middleword" used before, this is usually 
refered to as "wildcard query" that has the unique property of including a 
"leading wildcard" character ... searching lucene mailing lists and 
documentation should help you find some techniques and tradeoff 
descriptions for accomplishing this -- including using "n-grams" based 
approaches which can be faster then the more conventional WildCardQuery at 
the expense of a much bigger index.

: "the dog is brown"

: The day is green and the dog is brown, but you'r nice. :-) --> This should
: be found ( No, I'm not drunken )
: The day is green and the dogs are brown, but you'r nice. --> Should not be
: found, because there are not the exact words.

a normal phrase search will do this for you as long as you do not use 
stemming. (or stop words)




-Hoss



Re: Merging multiple Solr Indexes

2007-10-07 Thread Ycrux

Hi Chris !

Thanks for the pointer. After two silent days waiting for reply,
I decided to  implement a command line for that. Works like a charm !!!
If anyone is interested, don't hesitate to ask for.

cheers
Y.

Chris Hostetter a écrit :

: Is there a simple way (or command line tool)
: to merge different Solr indexes (located on different machines)
: into one ?

Solr doesn't have anything like this built in, but there is a command line 
java class in Lucene that can do this, it's 
org.apache.lucene.misc.IndexMergeTool in the miscelleneous contrib.


PS...

http://people.apache.org/~hossman/#threadhijack

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is "hidden" in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.

See Also:  http://en.wikipedia.org/wiki/Thread_hijacking



-Hoss

 

  




Re: Merging multiple Solr Indexes

2007-10-07 Thread Chris Hostetter

: Thanks for the pointer. After two silent days waiting for reply,
: I decided to  implement a command line for that. Works like a charm !!!

well, sometimes people just don't post because they don't know the 
answer to something (better then 50 people posting "i don't know").

but a big part of hte problem has to do with the issue i mentioned in the 
PS.  When you post an offtopic reply to an existing thread, (even if you 
change the subject)  many people don't notice it -- because they've 
already read some of the messages and decided the thread topic doesn't 
interest them...


: > http://people.apache.org/~hossman/#threadhijack
: > 
: > When starting a new discussion on a mailing list, please do not reply to an
: > existing message, instead start a fresh email.  Even if you change the
: > subject line of your email, other mail headers still track which thread you
: > replied to and your question is "hidden" in that thread and gets less
: > attention.   It makes following discussions in the mailing list archives
: > particularly difficult.
: > See Also:  http://en.wikipedia.org/wiki/Thread_hijacking



-Hoss



Re: Spell Check Handler

2007-10-07 Thread Otis Gospodnetic
Hello,

Did I miss this contribution or did it not happen?  I'm referring to the change 
to the SpellCheckerRequestHandler to handle spelling corrections/suggestions 
for multi-word queries.

Any chance you can provide a patch?

Thanks!

Otis
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/  -  Tag  -  Search  -  Share

- Original Message 
From: climbingrose <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Sunday, August 12, 2007 8:24:12 AM
Subject: Re: Spell Check Handler

I'm happy to contribute code for the SpellCheckerRequestHandler. I'll post
the code once I strip off stuff related to our product.

On 8/12/07, Pieter Berkel <[EMAIL PROTECTED]> wrote:
>
> On 11/08/07,
> climbingrose<
> [EMAIL PROTECTED]> wrote:
> >
> > That's exactly what I did with my custom version of the
> > SpellCheckerHandler.
> > However, I didn't handle suggestionCount and only returned the one
> > corrected
> > phrase which contains the "best" corrected terms. There is an issue on
> > Lucene issue tracker regarding multi-word spellchecker:
> >
> https://issues.apache.org/jira/browse/LUCENE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> >
>
>
> I'd be interested to take a look at your modifications to the
> SpellCheckerHandler, how did you handle phrase queries? maybe we can open
> a
> JIRA issue to expand the spell checking functionality to perform analysis
> on
> multi-word input values.
>
> I did find http://issues.apache.org/jira/browse/LUCENE-626 after looking
> at
> LUCENE-550, but since these patches are not yet included in the Lucene
> trunk
> yet it might be a little difficult to justify implementing them in Solr.
>



-- 
Regards,

Cuong Hoang





proximity search not working in solr lucene

2007-10-07 Thread Maheshwar

Hi everybody,

I have installed solr lucene for my website: clickindia.com, but I am
unable to apply proximity search for the same over there.

Please help me that how should I index solrconfig.xml & schema.xml
after providing an option of proximity search.
-- 
View this message in context: 
http://www.nabble.com/proximity-search-not-working-in-solr-lucene-tf4586157.html#a13091166
Sent from the Solr - User mailing list archive at Nabble.com.