lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: How to formulate query
Date Mon, 12 Oct 2015 16:50:07 GMT
Nothing exists currently that would do this. I would urge you to revisit the
requirements, this kind of super-specific ordering is often not worth the
effort to try to enforce, how does the _user_ benefit here?

Best,
Erick

On Mon, Oct 12, 2015 at 12:47 AM, Prasanna S. Dhakephalkar
<prasanna.d@merajob.in> wrote:
> Hi,
>
>
>
> I am trying to make a solr search query to get result as under I am unable
> to get do
>
>
>
> I have a search term say "pit"
>
> The result should have (in that order)
>
>
>
> All docs that have "pit" as first WORD in search field  (pit\ *)+
>
> All docs that have first WORD that starts with "pit"  (pit*\  *)+
>
> All docs that have "pit" as WORD anywhere in search field  (except first)
> (*\ pit\ *)+
>
> All docs that have  a WORD starting with "pit" anywhere in search field
> (except first) (*\ pit*\ *)+
>
> All docs that have "pit" as string anywhere in the search field except cases
> covered above (*pit*)
>
>
>
> Example :
>
>
>
> Pit the pat
>
> Pit digger
>
> Pitch ball
>
> Pitcher man
>
> Dig a pit with shovel
>
> Why do you want to dig a pit with shovel
>
> Cricket pitch is 22 yards
>
> What is pithy, I don't know
>
> Per capita income
>
> Epitome of blah blah
>
>
>
>
>
> How can I achieve this ?
>
>
>
> Regards,
>
>
>
> Prasanna.
>
>
>

Mime
View raw message