You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jan Kammer <ja...@mni.fh-giessen.de> on 2009/11/04 16:37:57 UTC

dismax + wildcard

Hi there,

what is the best way to search all fields AND use wildcards?
Somewhere I read that there are problems with this combination... 
(dismax + wildcard)


Thanks,


Jan




Re: dismax + wildcard

Posted by Peter Wolanin <pe...@acquia.com>.
There are some open issues (not for 1.4 at this point) to make dismax
more flexible or add wildcard handling, e.g:

https://issues.apache.org/jira/browse/SOLR-756
https://issues.apache.org/jira/browse/SOLR-758

You might participate in those to try to get this in a future version
and/or get a working patch for 1.4

-Peter

On Wed, Nov 4, 2009 at 7:04 PM, Koji Sekiguchi <ko...@r.email.ne.jp> wrote:
> Jan Kammer wrote:
>>
>> Hi there,
>>
>> what is the best way to search all fields AND use wildcards?
>> Somewhere I read that there are problems with this combination... (dismax
>> + wildcard)
>>
> It's a feature of dismax. WildcardQuery cannot be used in dismax q
> parameter.
>
> You can copy the "all fields" to a destination field by using
> copyField, then search the destination field with wildcards
> (without using dismax).
>
> Koji
>
> --
> http://www.rondhuit.com/en/
>
>



-- 
Peter M. Wolanin, Ph.D.
Momentum Specialist,  Acquia. Inc.
peter.wolanin@acquia.com

Re: dismax + wildcard

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
Jan Kammer wrote:
> Hi there,
>
> what is the best way to search all fields AND use wildcards?
> Somewhere I read that there are problems with this combination... 
> (dismax + wildcard)
>
It's a feature of dismax. WildcardQuery cannot be used in dismax q 
parameter.

You can copy the "all fields" to a destination field by using
copyField, then search the destination field with wildcards
(without using dismax).

Koji

-- 
http://www.rondhuit.com/en/


Re: dismax + wildcard

Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: dismax + wildcard
: References: <3C...@gmail.com>
:     <f1...@mail.gmail.com>
:     <C8...@gmail.com>
: In-Reply-To: <C8...@gmail.com>

http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

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: dismax + wildcard

Posted by Ankit Bhatnagar <ab...@vantage.com>.

 Hi Jan,
 You could write a dismax request handler and then then in the query you could specify like -

q=something&qt=dismaxhandler&fq=type:something

This might help.

Thanks
-Ankit





-----Original Message-----
From: Jan Kammer [mailto:jan.kammer@mni.fh-giessen.de] 
Sent: Wednesday, November 04, 2009 10:38 AM
To: solr-user@lucene.apache.org
Subject: dismax + wildcard

Hi there,

what is the best way to search all fields AND use wildcards?
Somewhere I read that there are problems with this combination... 
(dismax + wildcard)


Thanks,


Jan