Re: Snipets Solr/nutch

2008-04-13 Thread khirb7

hello,
mike adviser me last time to use:

>This is done by the fragmenting stage of highlighting.  Solr (trunk)  
>ships with a fragmenter that looks for sentence-like snippets using  
>regular expressions: try hl.fragmenter=regex (see config in  
>solrconfig.xml).
the prolem is I wasn't  able either to  do that or spécifie  the fragsize 
from solrconfig.xml i think it is due to the version of solr I use and what
classe and package I spécifie   ie:
I put this in solrconfig.xml



−

−

−

400


−

−

−

−

70

0.5

[-\w ,/\n\"']{20,200}



−

−







so either using 


org.apache.solr.util.GapFragmenter   specifique to  solr1.2

 or 


it doesn't work solr still use the default value fragsize=100. also I am not
able to spécifieregex  fragmenter due to this probleme of version I
suppose or the way I am declaring   ..
because 
both of:
 

and

still use fragsize=100 but i am using   400 as
shown above.

thank you.
-- 
View this message in context: 
http://www.nabble.com/Snipets-Solr-nutch-tp16537216p16656960.html
Sent from the Solr - User mailing list archive at Nabble.com.



how to apply a patch

2008-04-13 Thread khirb7

hello every body

May be it's a stupid question as I am new in Solr, I want to know how to
apply a patch, for example this one that I find here: 
https://issues.apache.org/jira/browse/SOLR-225 
 SOLR-225+260-HighlightPlugins.patch 
SOLR-225-HighlightingConfig.patch 
 toAllow pluggable Highlighting classes -- Formatters and Fragmenters,
are these two files are one patch or two differente patch and how to apply
them.

thank you in advance.
-- 
View this message in context: 
http://www.nabble.com/how-to-apply-a-patch-tp16659477p16659477.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: how to apply a patch

2008-04-13 Thread Grant Ingersoll

I generally do:

svn up   (make sure I am up to date)
patch -p 0 -i  [--dry-run]

I usually do the --dry-run first to see if it applies cleanly, then  
drop it if it does.


HTH,
Grant

On Apr 13, 2008, at 10:37 AM, khirb7 wrote:



hello every body

May be it's a stupid question as I am new in Solr, I want to know  
how to

apply a patch, for example this one that I find here:
https://issues.apache.org/jira/browse/SOLR-225
SOLR-225+260-HighlightPlugins.patch
SOLR-225-HighlightingConfig.patch
toAllow pluggable Highlighting classes -- Formatters and  
Fragmenters,
are these two files are one patch or two differente patch and how to  
apply

them.

thank you in advance.
--
View this message in context: 
http://www.nabble.com/how-to-apply-a-patch-tp16659477p16659477.html
Sent from the Solr - User mailing list archive at Nabble.com.



--
Grant Ingersoll

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ