From 1aec5a3da74073c31370c8c434d963efc269422f Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Thu, 23 Feb 2006 19:18:22 +0000 Subject: [PATCH] changes in the schema, and some sample docs git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@380201 13f79535-47bb-0310-9956-ffa450edef68 --- example/conf/schema.xml | 66 +++++++++++++++++++++++------- example/exampledocs/hd.xml | 29 +++++++++++++ example/exampledocs/ipod_other.xml | 33 +++++++++++++++ example/exampledocs/ipod_video.xml | 18 ++++++++ example/exampledocs/mem.xml | 41 +++++++++++++++++++ example/exampledocs/monitor.xml | 14 +++++++ example/exampledocs/monitor2.xml | 13 ++++++ example/exampledocs/mp500.xml | 22 ++++++++++ example/exampledocs/post.sh | 12 ++++++ example/exampledocs/sd500.xml | 16 ++++++++ example/exampledocs/vidcard.xml | 35 ++++++++++++++++ 11 files changed, 285 insertions(+), 14 deletions(-) create mode 100755 example/exampledocs/hd.xml create mode 100755 example/exampledocs/ipod_other.xml create mode 100644 example/exampledocs/ipod_video.xml create mode 100755 example/exampledocs/mem.xml create mode 100755 example/exampledocs/monitor.xml create mode 100755 example/exampledocs/monitor2.xml create mode 100755 example/exampledocs/mp500.xml create mode 100755 example/exampledocs/post.sh create mode 100755 example/exampledocs/sd500.xml create mode 100755 example/exampledocs/vidcard.xml diff --git a/example/conf/schema.xml b/example/conf/schema.xml index 455e12a3c52..89ec9f00eaa 100755 --- a/example/conf/schema.xml +++ b/example/conf/schema.xml @@ -66,8 +66,10 @@ matching across fields. --> + - + @@ -76,9 +78,15 @@ - + + - + @@ -86,9 +94,9 @@ - + @@ -107,6 +115,20 @@ + + + + + + + + + + + + + @@ -122,15 +144,26 @@ --> - - - - + + + + + + + + + + + + + + + id @@ -159,9 +191,15 @@ - - - + + + + + + + + + + 5 + true + + + + + + + diff --git a/example/exampledocs/monitor.xml b/example/exampledocs/monitor.xml new file mode 100755 index 00000000000..dec40ebd652 --- /dev/null +++ b/example/exampledocs/monitor.xml @@ -0,0 +1,14 @@ + + 3007WFP + Dell Widescreen UltraSharp 3007WFP + Dell, Inc. + electronics + monitor + 30" TFT active matrix LCD, 2560 x 1600, .25mm dot pitch, 700:1 contrast + USB cable + 401.6 + 2199 + 6 + true + + diff --git a/example/exampledocs/monitor2.xml b/example/exampledocs/monitor2.xml new file mode 100755 index 00000000000..0d138067804 --- /dev/null +++ b/example/exampledocs/monitor2.xml @@ -0,0 +1,13 @@ + + VA902B + ViewSonic VA902B - flat panel display - TFT - 19" + ViewSonic Corp. + electronics + monitor + 19" TFT active matrix LCD, 8ms response time, 1280 x 1024 native resolution + 190.4 + 279.95 + 6 + true + + diff --git a/example/exampledocs/mp500.xml b/example/exampledocs/mp500.xml new file mode 100755 index 00000000000..0d3ce51ef47 --- /dev/null +++ b/example/exampledocs/mp500.xml @@ -0,0 +1,22 @@ + + 0579B002 + Canon PIXMA MP500 All-In-One Photo Printer + Canon Inc. + electronics + multifunction printer + printer + scanner + copier + Multifunction ink-jet color photo printer + Flatbed scanner, optical scan resolution of 1,200 x 2,400 dpi + 2.5" color LCD preview screen + Duplex Copying + Printing speed up to 29ppm black, 19ppm color + Hi-Speed USB + memory card: CompactFlash, Micro Drive, SmartMedia, Memory Stick, Memory Stick Pro, SD Card, and MultiMediaCard + 352 + 179.99 + 6 + true + + diff --git a/example/exampledocs/post.sh b/example/exampledocs/post.sh new file mode 100755 index 00000000000..3f947851f1d --- /dev/null +++ b/example/exampledocs/post.sh @@ -0,0 +1,12 @@ +#!/bin/sh +FILES=$* +URL=http://localhost:8983/solr/update + +for f in $FILES; do + echo Posting file $f to $URL + curl $URL --data-binary @$f +done + +#send the commit command to make sure all the changes are flushed and visible +curl $URL --data-binary '' + diff --git a/example/exampledocs/sd500.xml b/example/exampledocs/sd500.xml new file mode 100755 index 00000000000..76864cba75d --- /dev/null +++ b/example/exampledocs/sd500.xml @@ -0,0 +1,16 @@ + + 9885A004 + Canon Powershot SD500 + Canon Inc. + electronics + camera + 3x zoop, 7.1 megapixel Digital ELPH + movie clips up to 640x480 @30 fps + 2.0" TFT LCD, 118,000 pixels + built in flash, red-eye reduction + 32MB SD card, USB cable, AV cable, battery + 6.4 + 329.95 + 7 + true + diff --git a/example/exampledocs/vidcard.xml b/example/exampledocs/vidcard.xml new file mode 100755 index 00000000000..ab54381295b --- /dev/null +++ b/example/exampledocs/vidcard.xml @@ -0,0 +1,35 @@ + + + EN7800GTX/2DHTV/256M + ASUS Extreme N7800GTX/2DHTV (256 MB) + ASUS Computer Inc. + electronics + graphics card + NVIDIA GeForce 7800 GTX GPU/VPU clocked at 486MHz + 256MB GDDR3 Memory clocked at 1.35GHz + PCI Express x16 + Dual DVI connectors, HDTV out, video input + OpenGL 2.0, DirectX 9.0 + 16 + 479.95 + 7 + false + + + + 100-435805 + ATI Radeon X1900 XTX 512 MB PCIE Video Card + ATI Technologies + electronics + graphics card + ATI RADEON X1900 GPU/VPU clocked at 650MHz + 512MB GDDR3 SDRAM clocked at 1.55GHz + PCI Express x16 + dual DVI, HDTV, svideo, composite out + OpenGL 2.0, DirectX 9.0 + 48 + 649.99 + 7 + false + +