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 nihed mbarek <ni...@gmail.com> on 2012/12/13 13:36:41 UTC
fieldType custom search
Hello,
Is it possible to define a custom search for a fieldType on a schema ? ?
Regards,
--
M'BAREK Med Nihed
Re: fieldType custom search
Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi Antoine,
We didn't use grouping. We didn't try to reorder millions of documents
because that would mean they would all need to first read from disk/cache,
then reordered, and then returned, which would be slooow. We did get more
docs than we needed because in our case our goal was to diversify hits (as
opposed to having hits ordered so uniformly according to a strict pattern
as in your example). From what I can tell, what you are after could be
accomplished with the same thing we did and a slightly different algo
(which just so happens to be pluggable in our case).
Otis
--
SOLR Performance Monitoring - http://sematext.com/spm/index.html
Search Analytics - http://sematext.com/search-analytics/index.html
On Sat, Dec 15, 2012 at 10:28 AM, Antoine LE FLOC'H <le...@gmail.com>wrote:
> Otis,
> Can you give more details on this ? Sounds interesting to me. What about if
> you are trying to re-order millions of Lucene documents ? Did you use
> grouping first ?
> Antoine.
>
>
> On Thu, Dec 13, 2012 at 8:54 PM, Otis Gospodnetic <
> otis.gospodnetic@gmail.com> wrote:
>
> > Hi,
> >
> > We've done something very similar to this before. We implemented it as a
> > custom SearchComponent with a pluggable hit (re)ordering mechanism.
> >
> > Otis
> > --
> > SOLR Performance Monitoring - http://sematext.com/spm/index.html
> > Search Analytics - http://sematext.com/search-analytics/index.html
> >
> >
> >
> >
> > On Thu, Dec 13, 2012 at 8:06 AM, nihed mbarek <ni...@gmail.com> wrote:
> >
> > > actually, I have as schema albums with
> > > artist / album_name / album_description
> > >
> > > When I made a search without query the result is (having the some
> score)
> > :
> > > artist A
> > > artist A
> > > artist A
> > > artist B
> > > artist B
> > > artist B
> > > artist C
> > > artist C
> > > => depends on my indexing process
> > >
> > > what I want as result :
> > > artist A
> > > artist B
> > > artist C
> > > artist A
> > > artist B
> > > artist C
> > > artist A
> > > artist B
> > >
> > > => a circular result to see what I have as artist on my solr
> > >
> > >
> > >
> > >
> > >
> > > On Thu, Dec 13, 2012 at 1:59 PM, Tomás Fernández Löbbe <
> > > tomasflobbe@gmail.com> wrote:
> > >
> > > > What do you mean? Could you explain your use case?
> > > >
> > > > Tomás
> > > >
> > > >
> > > > On Thu, Dec 13, 2012 at 9:36 AM, nihed mbarek <ni...@gmail.com>
> > wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > Is it possible to define a custom search for a fieldType on a
> schema
> > ?
> > > ?
> > > > >
> > > > > Regards,
> > > > >
> > > > > --
> > > > >
> > > > > M'BAREK Med Nihed
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > M'BAREK Med Nihed,
> > > Fedora Ambassador, TUNISIA, Northern Africa
> > > http://www.nihed.com
> > >
> > > <http://tn.linkedin.com/in/nihed>
> > >
> >
>
Re: fieldType custom search
Posted by Antoine LE FLOC'H <le...@gmail.com>.
Otis,
Can you give more details on this ? Sounds interesting to me. What about if
you are trying to re-order millions of Lucene documents ? Did you use
grouping first ?
Antoine.
On Thu, Dec 13, 2012 at 8:54 PM, Otis Gospodnetic <
otis.gospodnetic@gmail.com> wrote:
> Hi,
>
> We've done something very similar to this before. We implemented it as a
> custom SearchComponent with a pluggable hit (re)ordering mechanism.
>
> Otis
> --
> SOLR Performance Monitoring - http://sematext.com/spm/index.html
> Search Analytics - http://sematext.com/search-analytics/index.html
>
>
>
>
> On Thu, Dec 13, 2012 at 8:06 AM, nihed mbarek <ni...@gmail.com> wrote:
>
> > actually, I have as schema albums with
> > artist / album_name / album_description
> >
> > When I made a search without query the result is (having the some score)
> :
> > artist A
> > artist A
> > artist A
> > artist B
> > artist B
> > artist B
> > artist C
> > artist C
> > => depends on my indexing process
> >
> > what I want as result :
> > artist A
> > artist B
> > artist C
> > artist A
> > artist B
> > artist C
> > artist A
> > artist B
> >
> > => a circular result to see what I have as artist on my solr
> >
> >
> >
> >
> >
> > On Thu, Dec 13, 2012 at 1:59 PM, Tomás Fernández Löbbe <
> > tomasflobbe@gmail.com> wrote:
> >
> > > What do you mean? Could you explain your use case?
> > >
> > > Tomás
> > >
> > >
> > > On Thu, Dec 13, 2012 at 9:36 AM, nihed mbarek <ni...@gmail.com>
> wrote:
> > >
> > > > Hello,
> > > >
> > > > Is it possible to define a custom search for a fieldType on a schema
> ?
> > ?
> > > >
> > > > Regards,
> > > >
> > > > --
> > > >
> > > > M'BAREK Med Nihed
> > > >
> > >
> >
> >
> >
> > --
> >
> > M'BAREK Med Nihed,
> > Fedora Ambassador, TUNISIA, Northern Africa
> > http://www.nihed.com
> >
> > <http://tn.linkedin.com/in/nihed>
> >
>
Re: fieldType custom search
Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi,
We've done something very similar to this before. We implemented it as a
custom SearchComponent with a pluggable hit (re)ordering mechanism.
Otis
--
SOLR Performance Monitoring - http://sematext.com/spm/index.html
Search Analytics - http://sematext.com/search-analytics/index.html
On Thu, Dec 13, 2012 at 8:06 AM, nihed mbarek <ni...@gmail.com> wrote:
> actually, I have as schema albums with
> artist / album_name / album_description
>
> When I made a search without query the result is (having the some score) :
> artist A
> artist A
> artist A
> artist B
> artist B
> artist B
> artist C
> artist C
> => depends on my indexing process
>
> what I want as result :
> artist A
> artist B
> artist C
> artist A
> artist B
> artist C
> artist A
> artist B
>
> => a circular result to see what I have as artist on my solr
>
>
>
>
>
> On Thu, Dec 13, 2012 at 1:59 PM, Tomás Fernández Löbbe <
> tomasflobbe@gmail.com> wrote:
>
> > What do you mean? Could you explain your use case?
> >
> > Tomás
> >
> >
> > On Thu, Dec 13, 2012 at 9:36 AM, nihed mbarek <ni...@gmail.com> wrote:
> >
> > > Hello,
> > >
> > > Is it possible to define a custom search for a fieldType on a schema ?
> ?
> > >
> > > Regards,
> > >
> > > --
> > >
> > > M'BAREK Med Nihed
> > >
> >
>
>
>
> --
>
> M'BAREK Med Nihed,
> Fedora Ambassador, TUNISIA, Northern Africa
> http://www.nihed.com
>
> <http://tn.linkedin.com/in/nihed>
>
Re: fieldType custom search
Posted by Tomás Fernández Löbbe <to...@gmail.com>.
If you want that exact circular result I think the only option is to have
an extra field, pre calculated (according to these needs, for example,
incrementing a value for each document for the same artist or something
like that) and sort on that field.
If what you need is to show the artists, maybe the grouping feature can
help you?
On Thu, Dec 13, 2012 at 10:06 AM, nihed mbarek <ni...@gmail.com> wrote:
> actually, I have as schema albums with
> artist / album_name / album_description
>
> When I made a search without query the result is (having the some score) :
> artist A
> artist A
> artist A
> artist B
> artist B
> artist B
> artist C
> artist C
> => depends on my indexing process
>
> what I want as result :
> artist A
> artist B
> artist C
> artist A
> artist B
> artist C
> artist A
> artist B
>
> => a circular result to see what I have as artist on my solr
>
>
>
>
>
> On Thu, Dec 13, 2012 at 1:59 PM, Tomás Fernández Löbbe <
> tomasflobbe@gmail.com> wrote:
>
> > What do you mean? Could you explain your use case?
> >
> > Tomás
> >
> >
> > On Thu, Dec 13, 2012 at 9:36 AM, nihed mbarek <ni...@gmail.com> wrote:
> >
> > > Hello,
> > >
> > > Is it possible to define a custom search for a fieldType on a schema ?
> ?
> > >
> > > Regards,
> > >
> > > --
> > >
> > > M'BAREK Med Nihed
> > >
> >
>
>
>
> --
>
> M'BAREK Med Nihed,
> Fedora Ambassador, TUNISIA, Northern Africa
> http://www.nihed.com
>
> <http://tn.linkedin.com/in/nihed>
>
Re: fieldType custom search
Posted by nihed mbarek <ni...@gmail.com>.
actually, I have as schema albums with
artist / album_name / album_description
When I made a search without query the result is (having the some score) :
artist A
artist A
artist A
artist B
artist B
artist B
artist C
artist C
=> depends on my indexing process
what I want as result :
artist A
artist B
artist C
artist A
artist B
artist C
artist A
artist B
=> a circular result to see what I have as artist on my solr
On Thu, Dec 13, 2012 at 1:59 PM, Tomás Fernández Löbbe <
tomasflobbe@gmail.com> wrote:
> What do you mean? Could you explain your use case?
>
> Tomás
>
>
> On Thu, Dec 13, 2012 at 9:36 AM, nihed mbarek <ni...@gmail.com> wrote:
>
> > Hello,
> >
> > Is it possible to define a custom search for a fieldType on a schema ? ?
> >
> > Regards,
> >
> > --
> >
> > M'BAREK Med Nihed
> >
>
--
M'BAREK Med Nihed,
Fedora Ambassador, TUNISIA, Northern Africa
http://www.nihed.com
<http://tn.linkedin.com/in/nihed>
Re: fieldType custom search
Posted by Tomás Fernández Löbbe <to...@gmail.com>.
What do you mean? Could you explain your use case?
Tomás
On Thu, Dec 13, 2012 at 9:36 AM, nihed mbarek <ni...@gmail.com> wrote:
> Hello,
>
> Is it possible to define a custom search for a fieldType on a schema ? ?
>
> Regards,
>
> --
>
> M'BAREK Med Nihed
>