update working operators
This commit is contained in:
@@ -21,7 +21,7 @@ class BedestenSearchData(BaseModel):
|
|||||||
pageSize: int = Field(..., description="Results per page (1-10)")
|
pageSize: int = Field(..., description="Results per page (1-10)")
|
||||||
pageNumber: int = Field(..., description="Page number (1-indexed)")
|
pageNumber: int = Field(..., description="Page number (1-indexed)")
|
||||||
itemTypeList: List[str] = Field(..., description="Court type filter (YARGITAYKARARI/DANISTAYKARAR/YERELHUKUK/ISTINAFHUKUK/KYB)")
|
itemTypeList: List[str] = Field(..., description="Court type filter (YARGITAYKARARI/DANISTAYKARAR/YERELHUKUK/ISTINAFHUKUK/KYB)")
|
||||||
phrase: str = Field(..., description="Search phrase (use \"exact phrase\" for precise matching)")
|
phrase: str = Field(..., description="Search phrase. Supports: 'word', \"exact phrase\", +required, -exclude, AND/OR/NOT operators. No wildcards or regex.")
|
||||||
birimAdi: BirimAdiEnum = Field("ALL", description="""
|
birimAdi: BirimAdiEnum = Field("ALL", description="""
|
||||||
Chamber filter (optional). Abbreviated values with Turkish names:
|
Chamber filter (optional). Abbreviated values with Turkish names:
|
||||||
• Yargıtay: H1-H23 (1-23. Hukuk Dairesi), C1-C23 (1-23. Ceza Dairesi), HGK (Hukuk Genel Kurulu), CGK (Ceza Genel Kurulu), BGK (Büyük Genel Kurulu), HBK (Hukuk Daireleri Başkanlar Kurulu), CBK (Ceza Daireleri Başkanlar Kurulu)
|
• Yargıtay: H1-H23 (1-23. Hukuk Dairesi), C1-C23 (1-23. Ceza Dairesi), HGK (Hukuk Genel Kurulu), CGK (Ceza Genel Kurulu), BGK (Büyük Genel Kurulu), HBK (Hukuk Daireleri Başkanlar Kurulu), CBK (Ceza Daireleri Başkanlar Kurulu)
|
||||||
|
|||||||
+5
-7
@@ -1773,17 +1773,15 @@ async def get_rekabet_kurumu_document(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
async def search_bedesten_unified(
|
async def search_bedesten_unified(
|
||||||
phrase: str = Field(..., description="""Search query in Turkish. WORKING EXAMPLES:
|
phrase: str = Field(..., description="""Search query in Turkish. SUPPORTED OPERATORS:
|
||||||
• Simple: "mülkiyet hakkı" (finds both words)
|
• Simple: "mülkiyet hakkı" (finds both words)
|
||||||
• Exact phrase: "\"mülkiyet hakkı\"" (finds exact phrase)
|
• Exact phrase: "\"mülkiyet hakkı\"" (finds exact phrase)
|
||||||
• Required term: "+mülkiyet hakkı" (must contain mülkiyet)
|
• Required term: "+mülkiyet hakkı" (must contain mülkiyet)
|
||||||
• Exclude term: "mülkiyet -kira" (contains mülkiyet but not kira)
|
• Exclude term: "mülkiyet -kira" (contains mülkiyet but not kira)
|
||||||
• Wildcard: "mülk*" (mülkiyet, mülk, etc.)
|
• Boolean AND: "mülkiyet AND hak" (both terms required)
|
||||||
• Fuzzy: "mülkiyet~" (similar spelling variations)
|
• Boolean OR: "mülkiyet OR tapu" (either term acceptable)
|
||||||
• Multiple terms: "mülkiyet AND hak" (both terms required)
|
• Boolean NOT: "mülkiyet NOT satış" (contains mülkiyet but not satış)
|
||||||
• Either term: "mülkiyet OR tapu" (either term acceptable)
|
NOTE: Wildcards (*,?), regex patterns (/regex/), fuzzy search (~), and proximity search are NOT supported.
|
||||||
• Proximity: "\"mülkiyet hakkı\"~5" (words within 5 positions)
|
|
||||||
• Regex: "/mülk.*/" (pattern matching)
|
|
||||||
For best results, use exact phrases with quotes for legal terms."""),
|
For best results, use exact phrases with quotes for legal terms."""),
|
||||||
court_types: List[BedestenCourtTypeEnum] = Field(
|
court_types: List[BedestenCourtTypeEnum] = Field(
|
||||||
default=["YARGITAYKARARI", "DANISTAYKARAR"],
|
default=["YARGITAYKARARI", "DANISTAYKARAR"],
|
||||||
|
|||||||
Reference in New Issue
Block a user