escaping parenthesis in search query don't work...

2011-02-01 Thread Pierre-Yves LANDRON

Hello !I've seen that in order to search term with parenthesis=2C those have to 
be=escaped as in title:\(term\).But it doesn't seem to work - parenthesis 
are=n't taken in account.here is the field type I'm using to index these data : 


   
 
  

 
 
 
 
How can I search parenthesis within my query ?Thanks,P. 
  

RE: Browse indexed terms in a field

2009-07-08 Thread Pierre-Yves LANDRON

Thanks !

it seems that can do the trick...

> Date: Tue, 7 Jul 2009 11:10:15 -0400
> Subject: Re: Browse indexed terms in a field
> From: bill.w...@gmail.com
> To: solr-user@lucene.apache.org
> 
> You can use facet.perfix to match the beginning of a given word:
> 
> http://wiki.apache.org/solr/SimpleFacetParameters#head-579914ef3a14d775a5ac64d2c17a53f3364e3cf6
> 
> Bill
> 
> On Tue, Jul 7, 2009 at 11:02 AM, Pierre-Yves LANDRON
> wrote:
> 
> >
> > Hello,
> >
> > Here is what I would like to achieve : in an indexed document there's a
> > fulltext indexed field ; I'd like to browse the terms in this field, ie. get
> > all the terms that match the begining of a given word, for example.
> > I can get all the field's facets for this document, but that's a lot of
> > terms to process ; is there a way to constraint the returned facets ?
> >
> > Thank you for your highlights.
> > Kind regards,
> > Pierre.
> >
> > _
> > More than messages–check out the rest of the Windows Live™.
> > http://www.microsoft.com/windows/windowslive/

_
Windows Live™: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009

Browse indexed terms in a field

2009-07-07 Thread Pierre-Yves LANDRON

Hello,

Here is what I would like to achieve : in an indexed document there's a 
fulltext indexed field ; I'd like to browse the terms in this field, ie. get 
all the terms that match the begining of a given word, for example. 
I can get all the field's facets for this document, but that's a lot of terms 
to process ; is there a way to constraint the returned facets ? 

Thank you for your highlights.
Kind regards,
Pierre.

_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/

Stopwords when facetting

2009-07-03 Thread Pierre-Yves LANDRON

Hello,

When indexing or querying text, i'm using the solr.StopFilterFactory ; it seems 
to works just fine...

But I want to use the text field as a facet, and get all the commonly used 
words in a set of results, without the stopwords. As far as I tried, I always 
get stopwords, and numerical terms, that pollute my facets results. How can I 
perform this ?

Thanks,
Pierre

_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx

RE: How to gather fields when faceting results ?

2009-05-19 Thread Pierre-Yves LANDRON


Yes, it's not a bad idea, and I will use this sort of trick as a last resort, 
but I would rather use something more "proper"...

Thanks,
P-Yves

> Date: Mon, 18 May 2009 21:33:03 +0530
> Subject: Re: How to gather fields when faceting results ?
> From: avl...@gmail.com
> To: solr-user@lucene.apache.org
> 
> How about having a single "facetable" field with values parentId_parentTitle?
> Get rid of the parentId and the underscore as a post process.
> 
> Cheers
> Avlesh
> 
> On Mon, May 18, 2009 at 7:13 PM, Pierre-Yves LANDRON
> wrote:
> 
> >
> > Hello,
> >
> > Using faceting in my results, I would like to "link" two fields :
> > For example, a parentID field should help me retrieve all the different
> > parents ids from a query, but it can't be used for displaying the facets, as
> > it doesn't mean anything for a user. A second field, parentTitle,  in my
> > document is a human readable transcription of this field : it is not usable
> > as an identifiant because several parentID can use the same parentTitle.
> > When parentID is used in faceting my results, I would like to retrieve the
> > parentTitle as well, and sort of be able to "link" the two of them, so the
> > later could be displayed instead of the former...
> > Is there a way to accomplish that ?
> >
> > Thanks,
> > King regards,
> > Pierre-Yves
> >
> > _
> > More than messages–check out the rest of the Windows Live™.
> > http://www.microsoft.com/windows/windowslive/

_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx

How to gather fields when faceting results ?

2009-05-18 Thread Pierre-Yves LANDRON

Hello,

Using faceting in my results, I would like to "link" two fields : 
For example, a parentID field should help me retrieve all the different parents 
ids from a query, but it can't be used for displaying the facets, as it doesn't 
mean anything for a user. A second field, parentTitle,  in my document is a 
human readable transcription of this field : it is not usable as an identifiant 
because several parentID can use the same parentTitle.
When parentID is used in faceting my results, I would like to retrieve the 
parentTitle as well, and sort of be able to "link" the two of them, so the 
later could be displayed instead of the former...
Is there a way to accomplish that ?

Thanks,
King regards,
Pierre-Yves

_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/

Status of an update request

2009-03-25 Thread Pierre-Yves LANDRON

Hello,

When I send an update or a commit to solr via curl, the response I get is 
formated in HTML ; I can't find a way to have a machine readable response file.
Here what is said on the subject in the solr config file :
"The response format differs from solr1.1 formatting and returns a standard 
error code.
 To enable solr1.1 behavior, remove the /update handler or change its path"
What I want, however, is an accurate description of the error and not just a 
standard Apache error code.
Is there a way to obtain an XML response file from solr ?

Thanks,
Kind regards,
P-YL

_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx

Response schema for an update.

2009-03-23 Thread Pierre-Yves LANDRON

Hello everyone,

Is there a way to configure a response schema for an update request ; All i've 
got after sending a commit to solr via curl is an HTML page that I can't parse 
to analyze the exact status of the response...

Here what is said on the subject in the solr config file :
"The response format differs from solr1.1 formatting and returns a standard 
error code.
 To enable solr1.1 behavior, remove the /update handler or change its path"
What I want, however, is an accurate description of the error and not just a 
standard HTML error code.

Thanks,
Kind regards,
P-Yves Landron



_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

RE: Retrieve last indexed documents...

2009-02-20 Thread Pierre-Yves LANDRON

OK, thanks,

That's what i've done ; I've kind of hoped that there was a nicer way to go, 
but after all, it works that way anyway...

Cheers,
P Landron

> Date: Fri, 20 Feb 2009 06:05:24 -0800
> From: otis_gospodne...@yahoo.com
> Subject: Re: Retrieve last indexed documents...
> To: solr-user@lucene.apache.org
> 
> 
> Pierre,
> 
> This is the issue to watch: https://issues.apache.org/jira/browse/SOLR-1023
> 
> I don't think there is a super nice way to do that currently.  You could use 
> the match-all query (*:*) and sort by timestamp desc, and use start=0&rows=1. 
>  Using a raw timestamp that includes milliseconds is not recommended unless 
> you really need milliseconds.
> 
> 
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> 
> 
> - Original Message 
> > From: Pierre-Yves LANDRON 
> > To: solr-user@lucene.apache.org
> > Sent: Friday, February 20, 2009 8:04:28 PM
> > Subject: Retrieve last indexed documents...
> > 
> > 
> > Hello everybody,
> > 
> > I suppose this is a very common question, and I'm sorry if it has been 
> > answered 
> > before : How can I retrieve the last indexed documents (I use a timestamp 
> > field 
> > defined as 
> > default="NOW" multiValued="false"/>) ? 
> > 
> > Thanks,
> > Pierre Landron
> > 
> > _
> > Show them the way! Add maps and directions to your party invites. 
> > http://www.microsoft.com/windows/windowslive/products/events.aspx
> 

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

Retrieve last indexed documents...

2009-02-20 Thread Pierre-Yves LANDRON

Hello everybody,

I suppose this is a very common question, and I'm sorry if it has been answered 
before : How can I retrieve the last indexed documents (I use a timestamp field 
defined as ) ? 

Thanks,
Pierre Landron

_
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx

RE: Can I specify the default operator at query time ?

2008-06-23 Thread Pierre-Yves LANDRON
Thanks !!!

it'll save me great time !



> From: [EMAIL PROTECTED]
> To: solr-user@lucene.apache.org
> Subject: Re: Can I specify the default operator at query time ?
> Date: Mon, 23 Jun 2008 05:54:13 -0400
> 
> 
> On Jun 23, 2008, at 5:42 AM, Pierre-Yves LANDRON wrote:
> > Is there a way to transgress the default operator defined in  
> > solrConfig for a particular query, and for this query only (a query- 
> > specific option) ?
> 
> Yes, you can specify the q.op=AND or q.op=OR per Solr request.
> 
>   Erik
> 

_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Can I specify the default operator at query time ?

2008-06-23 Thread Pierre-Yves LANDRON
Hello,

Is there a way to transgress the default operator defined in solrConfig for a 
particular query, and for this query only (a query-specific option) ?

Thanks,
P-Y Landron

_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

RE: how to clean an index ?

2008-05-13 Thread Pierre-Yves LANDRON

Thanks ! 

I should have known !

anyway, it works fine.



> From: [EMAIL PROTECTED]
> To: solr-user@lucene.apache.org
> Date: Tue, 13 May 2008 11:58:16 +0200
> Subject: RE: how to clean an index ?
> 
> Hi,
> 
> you can create a delete query matching al your documents like the query "*:*"
> 
> greetings,
> Tim
> ____________
> Van: Pierre-Yves LANDRON [EMAIL PROTECTED]
> Verzonden: dinsdag 13 mei 2008 11:53
> Aan: solr-user@lucene.apache.org
> Onderwerp: how to clean an index ?
> 
> Hello,
> 
> I want to clean an index (ie delete all documents), but cannot delete the 
> index repertory.
> Is it possible with the rest interface ?
> 
> Thanks,
> 
> Pierre-Yves Landron
> 
> _
> Explore the seven wonders of the world
> http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
> 
> 
> 
> 
> Please see our disclaimer, http://www.infosupport.be/Pages/Disclaimer.aspx 

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

how to clean an index ?

2008-05-13 Thread Pierre-Yves LANDRON
Hello,

I want to clean an index (ie delete all documents), but cannot delete the index 
repertory.
Is it possible with the rest interface ?

Thanks,

Pierre-Yves Landron

_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

RE: Multiple Solr Webapps

2007-12-19 Thread Pierre-Yves LANDRON


>> I'm trying to deploy several solr instance on my linux server, following the 
>> solr wiki instruction : I've created TWO context fragment files (solr1.xml 
>> solr2.xml), each one pointing on a different solr directory ( and ) and the 
>> same solr.war ( and ) to have it working fine. I would prefer to have only 
>> one instance of solr.war, as specified in the solr wiki ( 
>> http://wiki.apache.org/solr/SolrTomcat#head-024d7e11209030f1dbcac9974e55106abae837ac
>>  ).
>>
>
> With resin, I have one .war that is exploded for multiple web-apps.
> This works fine -- i have not tried with tomcat.
>
> ryan
>


I've found the reason why it doesn't worked : "For Tomcat 5.5 and later, the 
war file must be stored outside of the webapps directory for this to work. 
Otherwise, this Context element is ignored."  

Pierre-Yves Landron
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

RE: Multiple Solr Webapps

2007-12-18 Thread Pierre-Yves LANDRON

Hello,

Thanks for your answer.

Sorry for the redunding posts, I genuinely thought that my posts haven't been 
sent to the mailing list, because I haven't received them : but it seems 
attributable to my hotmail account. I'm really sorry for the convenience.

Pierre-Yves Landron

> Date: Mon, 17 Dec 2007 11:19:00 -0500
> From: [EMAIL PROTECTED]
> To: solr-user@lucene.apache.org
> Subject: Re: Multiple Solr Webapps
> 
> Pierre-Yves LANDRON wrote:
> > Hello,
> > 
> > I've got this dumb problem. I've tried to browse the mailing list archive, 
> > but there are way too much messages (btw, is there a way to "fullsearch" 
> > the archives ?)... 
> > 
> 
> try:
> http://www.nabble.com/Solr-f14479.html
> 
> > I'm trying to deploy several solr instance on my linux server, following 
> > the solr wiki instruction : I've created TWO context fragment files 
> > (solr1.xml solr2.xml), each one pointing on a different solr directory ( 
> > and ) and the same solr.war ( and ) to have it working fine. I would prefer 
> > to have only one instance of solr.war, as specified in the solr wiki ( 
> > http://wiki.apache.org/solr/SolrTomcat#head-024d7e11209030f1dbcac9974e55106abae837ac
> >  ).
> > 
> 
> With resin, I have one .war that is exploded for multiple web-apps. 
> This works fine -- i have not tried with tomcat.
> 
> ryan
> 

_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Multiple solr webapps

2007-12-17 Thread Pierre-Yves LANDRON

Hello,
 
I've got this dumb problem. I've tried to browse the mailing list archive, but 
there are way too much messages (btw, is there a way to "fullsearch" the 
archives ?)... 
 
I'm trying to deploy several solr instance on my linux server, following the 
solr wiki instruction : I've created TWO context fragment files (solr1.xml 
solr2.xml), each one pointing on a different solr directory ( and ) and the 
same solr.war ( and ) to have it working fine. I would prefer to have only one 
instance of solr.war, as specified in the solr wiki ( 
http://wiki.apache.org/solr/SolrTomcat#head-024d7e11209030f1dbcac9974e55106abae837ac
 ).
 
Do someone know if this a known problem, and if there a solution to it ?
 
Thank you very much,
Pierre-Yves Landron
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Multiple Solr Webapps

2007-12-17 Thread Pierre-Yves LANDRON

Hello,

I've got this dumb problem. I've tried to browse the mailing list archive, but 
there are way too much messages (btw, is there a way to "fullsearch" the 
archives ?)... 

I'm trying to deploy several solr instance on my linux server, following the 
solr wiki instruction : I've created TWO context fragment files (solr1.xml 
solr2.xml), each one pointing on a different solr directory ( and ) and the 
same solr.war ( and ) to have it working fine. I would prefer to have only one 
instance of solr.war, as specified in the solr wiki ( 
http://wiki.apache.org/solr/SolrTomcat#head-024d7e11209030f1dbcac9974e55106abae837ac
 ).

Do someone know if this a known problem, and if there a solution to it ?

Thank you very much,
Pierre-Yves Landron
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

RE: Multiple indexes

2007-11-12 Thread Pierre-Yves LANDRON

Hello,

Until now, i've used two instance of solr, one for each of my collections ; it 
works fine, but i wonder
if there is an advantage to use multiple indexes in one instance over several 
instances with one index each ?
Note that the two indexes have different schema.xml.

Thanks.
PL

> Date: Thu, 8 Nov 2007 18:05:43 -0500
> From: [EMAIL PROTECTED]
> To: solr-user@lucene.apache.org
> Subject: Multiple indexes
> 
> Hi,
> 
> I am looking for the way to utilize the multiple indexes for signle sole
> instance.
> I saw that there is the patch 215  available  and would like to ask someone
> who knows how to use multiple indexes.
> 
> Thanks,
> 
> Jae Joo

_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

RE: Structured Lucene documents

2007-08-20 Thread Pierre-Yves LANDRON
Hello !



At least, I've had the oportunity to test your solution, Pieter, which was to 
use dynamic field :


> 
> 
> Store each page in a separate field (e.g. page1, page2, page3 .. pageN) then
> at query time, use the highlighting parameters to highlight matches in the
> page fields. You should be able to determine the page field that matched the
> query by observing the highlighted results (I'm not certain if the
> hl.flparameter accepts dynamic field names, you may need to specify
> them all
> manually):
> 
> hl=true&hl.fl=page1,page2,page3,pageN&hl.requireFieldMatch=true



As expected, when using the option requireFieldMatch=true ; it does not work...

But when the option is set to false, it seems to work fine, and in first 
thought, I don't need it...
As
you say, I need to specify each field when requesting the index... It's
a big letdown, in my case : it's a shame because, your solution nearly
answer my problem.

It seems the highlights fields must be specified, and that I can't use the * 
completion to do so.

 Am I true ? Is there a way to go throught this obligation ?



Anyway, thanks you very much !

Kind Regards,

Pierre-Yves Landron








> Date: Mon, 13 Aug 2007 21:57:42 +1000
> From: [EMAIL PROTECTED]
> To: solr-user@lucene.apache.org
> Subject: Re: Structured Lucene documents
> 
> On 13/08/07, Pierre-Yves LANDRON <[EMAIL PROTECTED]> wrote:
> >
> > Hello !Thanks Pieter,That seems a good idea - if not an ideal one - even
> > if it sort of an hack. I will try it as soon as possible and keep you
> > informed.The hl.fl parameter doesn't have to be initialized, I think, so
> > it won't be a problem.On the other hand, I will have the exact same
> > problem to specify the (dynamic) field on wich the request is performed... I
> > need to be able to execute the request on the full text of the page only :
> > must I specify all of the -hightly variable- name of each page field in my
> > query ?I think that structured index document could be of great value to
> > complex documents indexation. Is there a way that someday Solr will include
> > such possibility, or is it basically impossible (due to the way Lucene works
> > for example) ?Kind Regards,Pierre-Yves Landron
> 
> 
> Hi Pierre-Yves,
> 
> Maybe you could use dynamic field copy in your schema.xml to index content
> from all page stored in your document in a separate field, something like:
> 
> 
> 
> and then you would only need to query on the "all_pages" field.  Not quite
> sure how this might be affected by the hl.requireFieldMatch=true parameter
> but it's worth a try.
> 
> cheers,
> Piete

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

RE: Structured Lucene documents

2007-08-13 Thread Pierre-Yves LANDRON
Hello !Thanks Pieter,That seems a good idea - if not an ideal one - even if it 
sort of an hack. I will try it as soon as possible and keep you informed.The 
hl.fl parameter doesn't have to be initialized, I think, so it won't be a 
problem.On the other hand, I will have the exact same problem to specify the 
(dynamic) field on wich the request is performed... I need to be able to 
execute the request on the full text of the page only : must I specify all of 
the -hightly variable- name of each page field in my query ?I think that 
structured index document could be of great value to complex documents 
indexation. Is there a way that someday Solr will include such possibility, or 
is it basically impossible (due to the way Lucene works for example) ?Kind 
Regards,Pierre-Yves Landron> Date: Wed, 8 Aug 2007 23:12:07 +1000> From: [EMAIL 
PROTECTED]> To: solr-user@lucene.apache.org> Subject: Re: Structured Lucene 
documents> > In theory, you could store all your pages in a single document 
using a> dynamic field type:> > > > Store each page in a separate field (e.g. 
page1, page2, page3 .. pageN) then> at query time, use the highlighting 
parameters to highlight matches in the> page fields. You should be able to 
determine the page field that matched the> query by observing the highlighted 
results (I'm not certain if the> hl.flparameter accepts dynamic field names, 
you may need to specify> them all> manually):> > 
hl=true&hl.fl=page1,page2,page3,pageN&hl.requireFieldMatch=true> > It sounds 
like a bit of a rough hack and I haven't actually tried to do this> myself, 
maybe someone else has a better idea?> > cheers,> Piete> > > On 08/08/2007, 
Pierre-Yves LANDRON <[EMAIL PROTECTED]> wrote:> >> > Hello,Is it possible to 
structure lucene documents via Solr, so one> > document coud fit into another 
one ?What I would like to do, for example :I> > want to retrieve full text 
articles, that fit on several pages for each of> > them. Results must take in 
account both the pages and the article from wich> > the search terms are from. 
I can create a lucene document for each pages of> > the article AND the article 
itself, and do two requests to get my results,> > but it would duplicate the 
full text in the index, and will not be too> > efficient. Ideally, what I would 
like to do is to create a document for> > indexing the text of each pages of 
the article, and group these documents in> > one document that describe the 
article : this way, when Lucene retrieve a> > requested term, i'll get the 
article and the page that contains the term.Iwonder if there's a way to emulate 
elegantly this behavior with Solr ?Kind> > Regards,Pierre-Yves Landron> > 
_> > Express 
yourself instantly with MSN Messenger! Download today it's FREE!> > 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

RE: Best use of wildcard searches

2007-08-09 Thread Pierre-Yves LANDRON
Hello I'm exactly in the same situation as you. I've got some structured 
subject ( as subjects:main subject/sub subject/sub sub subject ) and want to 
search them as litteral from a given level (subjects:main subject/*). As you 
know subjects:"main subject/"* doesn't work (but it should, shouldn't it ?), so 
what i've done is to replace the space caracter by the wildcard '?'  in my 
query, as this : subjects:main?subject/*. It works, even if it isn't very 
elegant.Is it a great loss, performance-wise ? Could somebody tell ?Sure, a 
better solution would be appreciated.Kind regards,Pierre-Yves Landron> From: 
[EMAIL PROTECTED]> Subject: Re: Best use of wildcard searches> Date: Wed, 8 Aug 
2007 14:59:36 -0700> To: solr-user@lucene.apache.org> > OK.> > So a followup 
question..> > ?q=department_exact:Apparel%3EMen's% > 
20Apparel*&fq=country_code:US&fq=brand_exact:adidas&fq=hibernated:true> > 
returns 0 results. Note the %20 in there for the space character.> > 
?q=department_exact:Apparel% > 
3EMen's*&fq=country_code:US&fq=brand_exact:adidas&fq=hibernated:true> returns 
several, and the only change is that I've truncated "Men's  > Apparel*" to be 
"Men's*".> > (example department_exacts from this result set below..)> > 
Apparel>Men's Apparel>Sweatshirts>Hooded> Apparel>Men's Apparel>Shirts>Tank 
Top>Workout> Apparel>Men's Apparel>Sweatshirts> Apparel>Men's 
Apparel>Sweatshirts> Apparel>Men's Apparel>Jackets>Windbreaker> > > > Any 
ideas why "Apparel>Men's*" would work, but "Apparel>Men's  > Apparel*" would 
not?> > ++>   | Matthew 
Runo>   | Zappos Development>   | [EMAIL PROTECTED]>   | 702-943-7833> 
++> > > On Aug 8, 2007, 
at 2:42 PM, Yonik Seeley wrote:> > > On 8/8/07, Matthew Runo <[EMAIL 
PROTECTED]> wrote:> >> I've been using the standard query handler to do 
searches like> >>> >> q=department_exact:"Foo>Bar>Baz>Qux"> >>> >> Now, lets 
assume I have lots of records, with various department> >> trees...> >> 1. 
Foo>Bar>Baz>Qux> >> 2. Foo>Bar>Baz>Put> >> 3. Foo>Bar>Something With 
Spaces>Elese> >> 4. Foo>Totaly>Different>Tree> >>> >> I'd like to get all the 
products at various levels, and all the> >> levels below.> >>> >> I have a 
tokenzied department field, and a copyField  > >> department_exact.> >>> >> 
I've been doing searches on the department_exact feild, thinking I> >> could do 
this..> >>> >> q=department_exact:"Foo>Bar*"> >> > A "*" inside quotes is 
literal.> > Try> > q=department_exact:Foo>Bar*> > Or if ">" is a reserved 
character, escape it with "\"> > q=department_exact:Foo\>Bar*> >> > If "Bar" is 
unique (only under Foo), you could use a copyfield to copy> > it to a regex 
tokenizer to split on ">" and then do a simple search on> > "Bar"> >> > -Yonik> 
>> 
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Structured Lucene documents

2007-08-08 Thread Pierre-Yves LANDRON
Hello,Is it possible to structure lucene documents via Solr, so one document 
coud fit into another one ?What I would like to do, for example :I want to 
retrieve full text articles, that fit on several pages for each of them. 
Results must take in account both the pages and the article from wich the 
search terms are from. I can create a lucene document for each pages of the 
article AND the article itself, and do two requests to get my results, but it 
would duplicate the full text in the index, and will not be too efficient. 
Ideally, what I would like to do is to create a document for indexing the text 
of each pages of the article, and group these documents in one document that 
describe the article : this way, when Lucene retrieve a requested term, i'll 
get the article and the page that contains the term.I wonder if there's a way 
to emulate elegantly this behavior with Solr ?Kind Regards,Pierre-Yves Landron
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

RE: searching multiple fields

2007-07-30 Thread Pierre-Yves LANDRON
Hello,I'm not sure if it's the smartest solution, but if your request go 
throught a programming layer, you could rewrite it using regular expression : 
query="apple" is rewrited in query="title:apple AND text:apple", for example. 
Don't know if it's clever performancewise, but it works fine, although I would 
love to use a more integrated solution...Here what i do, in php :private 
function parseQuery( $query ){$reservedWords = array( 'and', 'or', 
'not' );$operator = '\+|\-';$completion = '*?~';if ( 
sizeof($this->searchFields)>0 ){ //$this->searchFields = fields to be searched 
forif ( preg_match_all( 
'#('.$operator.')?(\b\w+\b:)?(\([^>]*\)|"[^"]*"|\b\w+[\w'.$completion.']*\b['.$completion.']?)#',
 $query, $matches, PREG_OFFSET_CAPTURE ) ){// $matches : 
0=>complet : 1=>operator ; 2=>field ; 3=>term / 0=>value 1=>offset  
  $newQuery = $query;for ( $i=sizeof($matches[0])-1; $i>=0; 
$i-- ){if ( !in_array( strtolower($matches[3][$i][0]), 
$reservedWords ) and !$matches[2][$i][0] ){if ( 
$nbField=sizeof($this->searchFields) ){$term = 
$matches[1][$i][0].(($nbField>1)?'(':'');foreach ( 
$this->searchFields as $key=>$field ){if 
($key>0) $term .= ' OR ';$term .= 
"(".$field.":".$matches[3][$i][0].")";} 
   $term .= (($nbField>1)?')':'');
$query = substr_replace( $query, $term, $matches[0][$i][1], 
strlen($matches[0][$i][0]) );}} 
   }}}return $query;}Hope this can 
help.Pierre-Yves Landron> From: [EMAIL PROTECTED]> To: 
solr-user@lucene.apache.org> Subject: searching multiple fields> Date: Tue, 31 
Jul 2007 00:34:08 +0200> > Hi,> > I want to search multiple fields by default 
(which is no supported by > StandardRequestHandler), but I also want to be able 
to use Lucene's > boolean syntax (AND/OR/NOT). This doesn't seem to be 
supported by > DisMaxRequestHandler. I will need to copy or extend 
StandardRequestHandler > and modify it, including the query parser it calls, or 
am I missing an > easier alternative?> > Regards>  Daniel> > -- > 
http://www.danielnaber.de
_
Play free games, earn tickets, get cool prizes! Join Live Search Club. 
http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink

Re: Snippets of indexed text

2007-04-02 Thread Pierre-Yves LANDRON

And this is the part for the highlighted text :



 
   
 





Yes it works just fine ! and it's great. :)

Thanks Thierry : you were right, i didn't look for the right tag in the 
response.
( My problem with facets parameters is still unresolved but i will work on 
that later)


The more i'm using solr, the more i'm glad i've choosen this way to work 
with lucene.


Kind Regards...
P-Yves Landron

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Re: Snippets of indexed text

2007-03-30 Thread Pierre-Yves LANDRON

hello,

thanks for the info ; it's exactly what i need. i can't manage to make it 
works, though. it's strange because i have the same problem with facets : it 
seems that some options are not taken in account...


for example, here is my request to solr:
q=%28%28titre:moulin%29+OR+%28texte:moulin%29+OR+%28sujet:moulin%29+OR+%28desc:moulin%29%29&version=2.1&start=0&rows=12&fl=*+score&qt=standard&hl=true&hl.fl=texte,desc&hl.snippets=3&hl.fragsize=150

and an extract of the response is :

0.0151801035
bml:8071

Les Grands Moulins
Le chemin de la Bouteille n'est pas, comme son nom semblerait l'indiquer, le 
chemin préféré des ivrognes. En l'occurrence, c'est plutôt le chemin des 
Boulangers ou mieux encore (... cutted by me, in fact all the field is 
returned)


http://10.208.0.215:8080/fedora/get/bml:8071/Thumb
page


obviously  the hl parameters haven't been taken in account. I've hot the 
same problem with the facet.mincount parameter; facets works fine, but this 
parameter is not taken in account for some reason...


did i done something wrong ?

thanks,
kind regards,
p-y





From: "Thierry Collogne" <[EMAIL PROTECTED]>
Reply-To: solr-user@lucene.apache.org
To: solr-user@lucene.apache.org
Subject: Re: Snippets of indexed text
Date: Thu, 29 Mar 2007 08:56:51 +0200

It is possible. You need to pass highlighting parameters. Look here :

 http://wiki.apache.org/solr/HighlightingParameters

Hope this helps.



_
It’s tax season, make sure to follow these few simple tips 
http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline




Snippets of indexed text

2007-03-28 Thread Pierre-Yves LANDRON

Hello everybody !

I wondering if there a way to get some relevant snippets (searched terms 
contextualized) of indexed text with a solr response to a query, instead of 
just the entire indexed field ? ( more widely, what are the possibilities to 
let solr formate the answer (highlight terms, etc.) ? )


Thanks,
Kind regards,
P-Y Landron

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Re: how to interpret the Solr score ?

2007-03-01 Thread Pierre-Yves LANDRON

Thank you Yonik,

I haven't seen that maxScore you're speaking about. It's exactly what I 
needed.


Cheers,
P-Y L



From: "Yonik Seeley" <[EMAIL PROTECTED]>
Reply-To: solr-user@lucene.apache.org
To: solr-user@lucene.apache.org
Subject: Re: how to interpret the Solr score ?
Date: Wed, 28 Feb 2007 12:31:34 -0500

On 2/28/07, Pierre-Yves LANDRON <[EMAIL PROTECTED]> wrote:

A silly question, but I think the subject isn't cover on the Solr wiki :
I'd like to use the score returned by Solr to give the user an estimation 
of
the response adequacy to his request (ok, that's what the score is 
for...).

But I cannot figure the meaning of this score : is it a precentage of the
response relevancy ? is it absolute, or relative to others given response 
?
Is it the raw Lucene score (perhaps I'm wrong but it doesn't seems it is 
in
my case) ? Is there a way to obtain a meaningful score ( ie: human 
readable

) ?


It's the raw lucene score.  Some lucene functions normalize the score
by dividing all scores by the top score in matching documents, if that
top score is greater than 1.  Solr also returns maxScore so you can do
the same if you desire.

-Yonik


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




how to interpret the Solr score ?

2007-02-28 Thread Pierre-Yves LANDRON

Hello,

A silly question, but I think the subject isn't cover on the Solr wiki :
I'd like to use the score returned by Solr to give the user an estimation of 
the response adequacy to his request (ok, that's what the score is for...). 
But I cannot figure the meaning of this score : is it a precentage of the 
response relevancy ? is it absolute, or relative to others given response ? 
Is it the raw Lucene score (perhaps I'm wrong but it doesn't seems it is in 
my case) ? Is there a way to obtain a meaningful score ( ie: human readable 
) ?


Thanks for reading !
Pierre-Yves Landron

_
Play Flexicon: the crossword game that feeds your brain. PLAY now for FREE.  
 http://zone.msn.com/en/flexicon/default.htm?icid=flexicon_hmtagline




Re: index browsing with solr

2007-02-26 Thread Pierre-Yves LANDRON

Solr has a pluggable request handling framework that lets you easily
write custom logic and takes care of the xml/json/etc writing for you.
Check:

http://wiki.apache.org/solr/SolrPlugins#head-7c0d03515c496017f6c0116ebb096e34a872cb61
http://wiki.apache.org/solr/SolrRequestHandler

Since the exact term browsing mechanism you asked for is not
supported, I suggested writing your own and looking to the
IndexInfoRequestHandler as a simple starting place.

After more thought (and Yonik pointing it out), you are probably best
off if you can use faced browsing to do what you need.
http://wiki.apache.org/solr/SolrFacetingOverview

ryan


Thanks ! the plugins capacity of solr make me more happy to have choosen it, 
but after a few reading, it seems that faced browsing is the way to go to 
avoid too much programing... In fact it seems pretty easy; just perhaps a 
little too time consuming, as I'm forced to throw a query in order to get 
back the indexed terms. But at least, it works.


Thanks again to everybody for your contribution.

Pierre-Yves Landron

_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




Re: index browsing with solr

2007-02-25 Thread Pierre-Yves LANDRON

http://localhost:8983/solr/select?qt=indexinfo&wt=ruby&indent=on

Though IndexInfoRequestHandler is practically obsolete with Ryan's
"Luke" contribution... isn't that so, Ryan?



functionality-wise, yes.

I pointed to the IndexInfoRequestHandler because it is the simplest
SolrRequestHandler that gets into lucene internals.  Adding term
browsing to it is really straight forward - thats how i stumbled into
writing the "luke" thing!


I'm not sure I understand...
Ryan, how can I have access to your contribution ? (is it a contribution to 
Luke or to the solr rest interface ?)

Is this implemented yet, and if so, how can I use it ?
Thanks.

Pierre-Yves Landron

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Re: index browsing with solr

2007-02-24 Thread Pierre-Yves LANDRON
Lucene does it throught the terms method from the class IndexReader, I 
think

:
abstract  TermEnum  terms(Term t) : Returns an enumeration of all 
terms after

a given term.

Does an implementation of this method exists in solr ?


You can get this functionality from the current faceting implementation,
the downside is that it will be slower.

-Yonik


ok. it seems great. time for me to look at faceted search more closely. Have 
you an idea of how much slower it will be ? does the implementation of an 
indexbrowsing method worth it (it will take me to learn how to integrate the 
new java method to the solr package - and I'm not a coding freak :(( )
anyway, at least i know now i can make it the easy way using faceted search, 
if necessary. thanks !


Pierre-Yves Landron

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Re: index browsing with solr

2007-02-24 Thread Pierre-Yves LANDRON

it will be easy to add.  take a look at a simple SolrRequestHandler:

http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/handler/IndexInfoRequestHandler.java

this gets the IndexReader and writes out some stuff.


thanks ! i will look at it. This handler is not accessible from the "rest" 
interface ? if so, why does it exists : is it used for the implementation of 
other rest instruction ?


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




index browsing with solr

2007-02-23 Thread Pierre-Yves LANDRON

Hello everybody,

I'm new to this mailing list, so excuse me if my question has already been 
debated here (I've searched on the web and found nothing about it).


I've used solr for two weeks now, and so far it's a really neat solution. 
I've replaced my previous index searcher app by solr in my current project, 
but can not find a way to substitute the browseIndex(field, startterm, 
numberoftermsretuened) function i've used so far. It's a very usefull method 
and I'm sure it can be accomplished with solr, but I can't figure how.
Lucene does it throught the terms method from the class IndexReader, I think 
:
abstract  TermEnum	terms(Term t) : Returns an enumeration of all terms after 
a given term.


Does an implementation of this method exists in solr ?

If not, is it difficult to develop new instructions for solr ? where I must 
start to do so ?


Thanks !
Pierre-Yves Landron

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/